Initial version
This commit is contained in:
parent
e99236a3f5
commit
2ce4f8c625
59
Makefile.in
Normal file
59
Makefile.in
Normal file
@ -0,0 +1,59 @@
|
||||
# -* Makefile *-
|
||||
#
|
||||
# Author : Patrick GOLDBRONN (CEA)
|
||||
# Date : 28/06/2001
|
||||
# $Header$
|
||||
#
|
||||
|
||||
# source path
|
||||
top_srcdir=@top_srcdir@
|
||||
top_builddir=.
|
||||
srcdir=@srcdir@
|
||||
VPATH=.:@srcdir@:@top_srcdir@/resources
|
||||
|
||||
|
||||
@COMMENCE@
|
||||
|
||||
SUBDIRS = idl src
|
||||
|
||||
RESOURCES_FILES = NETGENPlugin.xml
|
||||
|
||||
# copy header files in common directory ------------
|
||||
|
||||
ifeq ($(HAVE_SSTREAM),yes)
|
||||
include_list=include/salome/SALOMEconfig.h
|
||||
else
|
||||
include_list=include/salome/SALOMEconfig.h include/salome/sstream
|
||||
endif
|
||||
|
||||
inc: idl $(include_list)
|
||||
|
||||
include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
|
||||
-$(RM) $@
|
||||
$(LN_S) ../../$< $@
|
||||
|
||||
# test if SALOMEconfig.h has changed (contents)
|
||||
salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
|
||||
@if ! [ -a $@ ]; then \
|
||||
cp -p -f $< $@; \
|
||||
fi; \
|
||||
if ! cmp $< $@; then \
|
||||
cp -p -f $< $@; \
|
||||
fi; \
|
||||
|
||||
include/salome/sstream: salome_adm/unix/sstream
|
||||
-$(RM) $@
|
||||
$(LN_S) ../../$< $@
|
||||
|
||||
# CLEAN --------------------
|
||||
|
||||
distclean: distclean-other
|
||||
|
||||
distclean-other:
|
||||
-$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
|
||||
-$(RM) salome_adm/unix/make_*
|
||||
-$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
|
||||
-$(RM) config.cache config.log config.status
|
||||
|
||||
@MODULE@
|
||||
|
121
adm_local/unix/config_files/check_Netgen.m4
Normal file
121
adm_local/unix/config_files/check_Netgen.m4
Normal file
@ -0,0 +1,121 @@
|
||||
AC_DEFUN([CHECK_NETGEN],[
|
||||
|
||||
AC_REQUIRE([AC_PROG_CXX])dnl
|
||||
AC_REQUIRE([AC_PROG_CXXCPP])dnl
|
||||
|
||||
AC_CHECKING(for Netgen Libraries)
|
||||
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
AC_ARG_WITH(netgen,
|
||||
[ --with-netgen=DIR root directory path of NETGEN installation],
|
||||
NETGEN_HOME=$withval,NETGEN_HOME="")
|
||||
|
||||
NETGEN_INCLUDES=""
|
||||
NETGEN_LIBS_DIR=""
|
||||
|
||||
Netgen_ok=no
|
||||
|
||||
if test "x$NETGEN_HOME" == "x" ; then
|
||||
|
||||
# no --with-netgen option used
|
||||
if test "x$NETGENHOME" != "x" ; then
|
||||
|
||||
# NETGENHOME environment variable defined
|
||||
NETGEN_HOME=$NETGENHOME
|
||||
|
||||
fi
|
||||
#
|
||||
fi
|
||||
|
||||
if test "x$NETGEN_HOME" != "x"; then
|
||||
|
||||
echo
|
||||
echo
|
||||
echo -------------------------------------------------
|
||||
echo You are about to choose to use somehow the
|
||||
echo Netgen Library to generate Tetrahedric mesh.
|
||||
echo
|
||||
echo WARNING
|
||||
echo ----------------------------------------------------------
|
||||
echo ----------------------------------------------------------
|
||||
echo You are strongly advised to consult the file
|
||||
echo NETGENPLUGIN_SRC/src/ReadMeForNgUsers, particularly about
|
||||
echo assumptions made on the installation of the Netgen
|
||||
echo application and libraries.
|
||||
echo Ask your system administrator for those details.
|
||||
echo ----------------------------------------------------------
|
||||
echo ----------------------------------------------------------
|
||||
echo
|
||||
echo
|
||||
|
||||
|
||||
|
||||
NETGEN_INCLUDES="-I$NETGEN_HOME/include"
|
||||
NETGEN_LIBS_DIR="$NETGEN_HOME/lib/LINUX"
|
||||
|
||||
CPPFLAGS_old="$CPPFLAGS"
|
||||
CXXFLAGS_old="$CXXFLAGS"
|
||||
CPPFLAGS="$NETGEN_INCLUDES $CPPFLAGS"
|
||||
CXXFLAGS="$NETGEN_INCLUDES $CXXFLAGS"
|
||||
|
||||
AC_MSG_CHECKING(for Netgen header file)
|
||||
|
||||
AC_CHECK_HEADER(nglib.h,Netgen_ok=yes,Netgen_ok=no)
|
||||
if test "x$Netgen_ok" == "xyes"; then
|
||||
|
||||
AC_MSG_CHECKING(for Netgen libraries)
|
||||
|
||||
LDFLAGS_old="$LDFLAGS"
|
||||
LDFLAGS="-L. -lNETGEN $LDFLAGS"
|
||||
|
||||
AC_TRY_COMPILE(#include <iostream.h>
|
||||
#include <fstream.h>
|
||||
#include "nglib.h"
|
||||
,Ng_Init();
|
||||
Ng_Exit();,Netgen_ok=yes;ar x "$NETGEN_LIBS_DIR/libnginterface.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libcsg.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libgprim.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libmesh.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libopti.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libgen.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libla.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libstlgeom.a";
|
||||
ar x "$NETGEN_LIBS_DIR/libgeom2d.a";
|
||||
$CXX -shared linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o improve3.o adfront3.o tetrarls.o prism2rls.o pyramidrls.o pyramid2rls.o netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o geomsearch.o secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o meshing2.o meshing3.o meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o msghandler.o meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems.o clusters.o zrefine.o ngexception.o geomtest3d.o geom2d.o geom3d.o adtree.o transform3d.o geomfuncs.o polynomial.o densemat.o vector.o basemat.o sparsmat.o algprim.o brick.o manifold.o bspline2d.o meshsurf.o csgeom.o polyhedra.o curve2d.o singularref.o edgeflw.o solid.o explicitcurve2d.o specpoin.o gencyl.o revolution.o genmesh.o spline3d.o surface.o identify.o triapprox.o meshstlsurface.o stlline.o stltopology.o stltool.o stlgeom.o stlgeomchart.o stlgeommesh.o table.o optmem.o spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o array.o symbolta.o mystring.o moveablemem.o spline2d.o splinegeometry2.o ngnewdelete.o nglib.o -o libNETGEN.so;
|
||||
rm -rf adfront2.o adfront3.o adtree.o algprim.o array.o basemat.o bfgs.o bisect.o bitarray.o boundarylayer.o brick.o bspline2d.o clusters.o csgeom.o csgparser.o curve2d.o curvedelems.o delaunay.o densemat.o dynamicmem.o edgeflw.o explicitcurve2d.o extrusion.o flags.o gencyl.o genmesh.o geom2dmesh.o geom2d.o geom3d.o geomfuncs.o geomsearch.o geomtest3d.o global.o hashtabl.o hprefinement.o identify.o importsolution.o improve2gen.o improve2.o improve3.o linopt.o linsearch.o localh.o manifold.o meshclass.o meshfunc2d.o meshfunc.o meshing2.o meshing3.o meshstlsurface.o meshsurf.o meshtool.o meshtype.o moveablemem.o msghandler.o mystring.o netrule2.o netrule3.o ngexception.o nglib.o ngnewdelete.o optmem.o parser2.o parser3.o parthreads.o polyhedra.o polynomial.o prism2rls.o pyramid2rls.o pyramidrls.o quadrls.o readuser.o refine.o revolution.o ruler2.o ruler3.o secondorder.o seti.o singularref.o smoothing2.o smoothing3.o solid.o sort.o sparsmat.o spbita2d.o specials.o specpoin.o spline2d.o spline3d.o splinegeometry2.o stlgeomchart.o stlgeommesh.o stlgeom.o stlline.o stltool.o stltopology.o surface.o symbolta.o table.o tetrarls.o topology.o transform3d.o triapprox.o triarls.o vector.o writeabaqus.o writediffpack.o writefeap.o writefluent.o writepermas.o writetecplot.o writetochnog.o writeuser.o wuchemnitz.o zrefine.o,
|
||||
Netgen_ok=no)
|
||||
|
||||
AC_CACHE_VAL(salome_netgen_lib,[
|
||||
AC_TRY_LINK(
|
||||
#include <iostream.h>
|
||||
#include <fstream.h>
|
||||
#include "nglib.h"
|
||||
,Ng_Init();
|
||||
Ng_Exit();,
|
||||
eval "salome_netgen_lib=yes";rm -rf libNETGEN.so,eval "salome_netgen_lib=no";rm -rf libNETGEN.so)
|
||||
])
|
||||
Netgen_ok="$salome_netgen_lib"
|
||||
|
||||
|
||||
LDFLAGS="$LDFLAGS_old"
|
||||
fi
|
||||
|
||||
CPPFLAGS="$CPPFLAGS_old"
|
||||
CXXFLAGS="$CXXFLAGS_old"
|
||||
|
||||
if test "x$Netgen_ok" == xno ; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_WARN(Netgen libraries not found or not properly installed)
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST(NETGEN_INCLUDES)
|
||||
AC_SUBST(NETGEN_LIBS_DIR)
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
])dnl
|
273
adm_local/unix/make_commence.in
Normal file
273
adm_local/unix/make_commence.in
Normal file
@ -0,0 +1,273 @@
|
||||
# common directories to put headerfiles
|
||||
inc_builddir=$(top_builddir)/include/salome
|
||||
|
||||
@SET_MAKE@
|
||||
SHELL=/bin/sh
|
||||
|
||||
# header missing
|
||||
|
||||
HAVE_SSTREAM=@HAVE_SSTREAM@
|
||||
|
||||
|
||||
LIBS=@LIBS@
|
||||
LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome
|
||||
# add libstdc++ to link c++ library with libtool !
|
||||
LDFLAGS+= -lstdc++
|
||||
|
||||
CP=@CP@
|
||||
|
||||
# CPP
|
||||
|
||||
CPP=@CPP@
|
||||
CXXCPP=@CXXCPP@
|
||||
CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
|
||||
|
||||
# C
|
||||
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@
|
||||
C_DEPEND_FLAG = @C_DEPEND_FLAG@
|
||||
|
||||
# C++
|
||||
|
||||
CXX = @CXX@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
|
||||
|
||||
# BOOST Library
|
||||
|
||||
BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
|
||||
|
||||
# JAVA
|
||||
|
||||
JAVA_INCLUDES = @JAVA_INCLUDES@
|
||||
JAVA_LIBS = @JAVA_LIBS@
|
||||
JAVA_LDPATH = @JAVA_LDPATH@
|
||||
|
||||
# PYTHON
|
||||
|
||||
PYTHON = @PYTHON@
|
||||
PYTHONHOME = @PYTHONHOME@
|
||||
PYTHON_INCLUDES = @PYTHON_INCLUDES@
|
||||
PYTHON_LIBS = @PYTHON_LIBS@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
PYTHON_SITE = @PYTHON_SITE@
|
||||
PYTHON_SITE_INSTALL = @PYTHON_SITE_INSTALL@
|
||||
|
||||
# QT
|
||||
|
||||
QT_ROOT = @QT_ROOT@
|
||||
QT_INCLUDES = @QT_INCLUDES@
|
||||
QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
|
||||
QT_LIBS = @QT_LIBS@
|
||||
QT_MT_LIBS = @QT_MT_LIBS@
|
||||
|
||||
MOC = @MOC@
|
||||
UIC = @UIC@
|
||||
|
||||
|
||||
#QWT
|
||||
|
||||
QWT_INCLUDES=@QWT_INCLUDES@
|
||||
QWT_LIBS=@QWT_LIBS@
|
||||
|
||||
# SIP
|
||||
SIP = @SIP@
|
||||
SIP_INCLUDES = @SIP_INCLUDES@
|
||||
SIP_LIBS = @SIP_LIBS@
|
||||
|
||||
# PYQT
|
||||
PYQT_SIPS = @PYQT_SIPS@
|
||||
PYQT_LIBS = @PYQT_LIBS@
|
||||
|
||||
# openGL
|
||||
OGL_INCLUDES=@OGL_INCLUDES@
|
||||
OGL_LIBS=@OGL_LIBS@
|
||||
|
||||
# VTK
|
||||
VTK_INCLUDES=@VTK_INCLUDES@
|
||||
VTK_LIBS=@VTK_LIBS@
|
||||
|
||||
# HDF5
|
||||
|
||||
HDF5_INCLUDES=@HDF5_INCLUDES@
|
||||
HDF5_LIBS=@HDF5_LIBS@
|
||||
HDF5_MT_LIBS=@HDF5_MT_LIBS@
|
||||
|
||||
# MED2
|
||||
|
||||
MED2_INCLUDES=@MED2_INCLUDES@
|
||||
MED2_LIBS=@MED2_LIBS@
|
||||
MED2_MT_LIBS=@MED2_MT_LIBS@
|
||||
|
||||
# OpenCasCade
|
||||
|
||||
OCC_INCLUDES=@CAS_CPPFLAGS@
|
||||
OCC_CXXFLAGS=@CAS_CXXFLAGS@
|
||||
|
||||
OCC_KERNEL_LIBS=@CAS_KERNEL@
|
||||
OCC_OCAF_LIBS=@CAS_OCAF@
|
||||
OCC_VIEWER_LIBS=@CAS_VIEWER@
|
||||
OCC_MODELER_LIBS=@CAS_MODELER@
|
||||
OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
|
||||
OCC_LIBS=@CAS_LDFLAGS@
|
||||
|
||||
# MPICH
|
||||
|
||||
MPICH_INCLUDES=@MPICH_INCLUDES@
|
||||
MPICH_LIBS=@MPICH_LIBS@
|
||||
|
||||
# Swig C++ Python
|
||||
|
||||
SWIG = @SWIG@
|
||||
SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
|
||||
|
||||
# OMNIORB
|
||||
|
||||
OMNIORB_ROOT = @OMNIORB_ROOT@
|
||||
OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
|
||||
OMNIORB_LIBS = @OMNIORB_LIBS@
|
||||
OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
|
||||
|
||||
OMNIORB_IDL = @OMNIORB_IDL@
|
||||
OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
|
||||
OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome \
|
||||
-I$(GEOM_ROOT_DIR)/idl/salome -I$(MED_ROOT_DIR)/idl/salome\
|
||||
-I$(SMESH_ROOT_DIR)/idl/salome
|
||||
|
||||
OMNIORB_IDL_CLN_H = @OMNIORB_IDL_CLN_H@
|
||||
OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
|
||||
OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
|
||||
|
||||
OMNIORB_IDL_SRV_H = @OMNIORB_IDL_SRV_H@
|
||||
OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
|
||||
OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
|
||||
|
||||
# Default ORB
|
||||
|
||||
CORBA_ROOT = @CORBA_ROOT@
|
||||
CORBA_INCLUDES = @CORBA_INCLUDES@
|
||||
CORBA_LIBS = @CORBA_LIBS@
|
||||
CORBA_CXXFLAGS = @CORBA_CXXFLAGS@
|
||||
|
||||
IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome \
|
||||
-I$(GEOM_ROOT_DIR)/idl/salome -I$(MED_ROOT_DIR)/idl/salome\
|
||||
-I$(SMESH_ROOT_DIR)/idl/salome
|
||||
IDLPYFLAGS = @IDLPYFLAGS@
|
||||
|
||||
IDL = @IDL@
|
||||
|
||||
IDL_CLN_H = @IDL_CLN_H@
|
||||
IDL_CLN_CXX = @IDL_CLN_CXX@
|
||||
IDL_CLN_OBJ = @IDL_CLN_OBJ@
|
||||
|
||||
IDL_SRV_H = @IDL_SRV_H@
|
||||
IDL_SRV_CXX = @IDL_SRV_CXX@
|
||||
IDL_SRV_OBJ = @IDL_SRV_OBJ@
|
||||
|
||||
CPPFLAGS+= $(CORBA_INCLUDES)
|
||||
CXXFLAGS+= $(CORBA_CXXFLAGS)
|
||||
|
||||
# SALOME
|
||||
|
||||
SALOME_INCLUDES = \
|
||||
-I$(KERNEL_ROOT_DIR)/include/salome \
|
||||
-I$(GEOM_ROOT_DIR)/include/salome \
|
||||
-I$(SMESH_ROOT_DIR)/include/salome
|
||||
|
||||
CPPFLAGS += -DSOLIDGEOM -DLINUX $(OCC_INCLUDES) $(SALOME_INCLUDES) $(BOOST_CPPFLAGS)
|
||||
CXXFLAGS += -DSOLIDGEOM -DLINUX $(OCC_CXXFLAGS) $(SALOME_INCLUDES)
|
||||
|
||||
LDFLAGS += -lSMESHimpl -lSMESHEngine -lStdMeshers -lStdMeshersEngine -L${KERNEL_ROOT_DIR}/lib/salome -L${SMESH_ROOT_DIR}/lib/salome -L${GEOM_ROOT_DIR}/lib/salome -lSalomeGenericObj
|
||||
|
||||
# add corba libs when link salome application !
|
||||
#LDFLAGS+= $(CORBA_LIBS)
|
||||
LIBS+=$(CORBA_LIBS)
|
||||
|
||||
## Shared libraries
|
||||
LT_STATIC_EXEC=@LT_STATIC_EXEC@
|
||||
DYNAMIC_DIRS=@DYNAMIC_DIRS@
|
||||
LT_LIB=libtool
|
||||
LT=$(top_builddir)/libtool
|
||||
LT_COMPILE=$(LT) --mode=compile $(CC)
|
||||
LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
|
||||
LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
|
||||
LT_RUN=$(LT) --mode=execute
|
||||
LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
|
||||
LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
|
||||
LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
|
||||
|
||||
INSTALL=@INSTALL@
|
||||
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
||||
INSTALL_DATA=@INSTALL_DATA@
|
||||
|
||||
# create a symbolic link (or a copie ?)
|
||||
LN_S=@LN_S@
|
||||
|
||||
## Installation points
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
bindir=@bindir@/salome
|
||||
libdir=@libdir@/salome
|
||||
# warning : if user give this path in configure we could have salome/salome :-(
|
||||
includedir=@includedir@/salome
|
||||
datadir=@datadir@/salome
|
||||
idldir=$(prefix)/idl/salome
|
||||
sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
|
||||
|
||||
docdir=${prefix}/doc/salome
|
||||
|
||||
#
|
||||
# begin of package rules
|
||||
#
|
||||
|
||||
.PHONY: all lib bin inc resources docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
|
||||
|
||||
.SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
|
||||
|
||||
all:
|
||||
$(MAKE) inc
|
||||
$(MAKE) depend_idl
|
||||
$(MAKE) depend
|
||||
$(MAKE) lib
|
||||
$(MAKE) bin
|
||||
$(MAKE) resources
|
||||
|
||||
#
|
||||
# add target to build administrative files
|
||||
#
|
||||
|
||||
Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
|
||||
cd $(top_builddir) ; ./config.status
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure
|
||||
cd $(top_builddir) ; ./config.status --recheck
|
||||
|
||||
# VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
|
||||
ifneq ($(top_srcdir),$(srcdir))
|
||||
configure: $(top_srcdir)/configure
|
||||
endif
|
||||
|
||||
$(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
|
||||
cd $(top_srcdir) ; autoconf
|
||||
|
||||
$(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
|
||||
cd $(top_srcdir) && ./build_configure
|
||||
|
||||
|
||||
ACLOCAL_SRC = \
|
||||
ac_cxx_bool.m4 check_corba.m4 check_vtk.m4 \
|
||||
ac_cxx_depend_flag.m4 check_hdf5.m4 enable_pthreads.m4 \
|
||||
ac_cxx_mutable.m4 check_mico.m4 libtool.m4 \
|
||||
ac_cxx_namespaces.m4 check_omniorb.m4 pyembed.m4 \
|
||||
ac_cxx_partial_specialization.m4 check_opengl.m4 python.m4 \
|
||||
ac_cxx_typename.m4 check_pthreads.m4 check_cas.m4 \
|
||||
ac_cc_warnings.m4 check_qt.m4 check_med2.m4 \
|
||||
check_swig.m4 check_boost.m4
|
||||
|
||||
#ifeq (@WITHNETGEN@,yes)
|
||||
# ACLOCAL_SRC += check_Netgen.m4
|
||||
#endif
|
||||
|
||||
$(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%)
|
||||
cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files
|
62
adm_local/unix/make_omniorb.in
Normal file
62
adm_local/unix/make_omniorb.in
Normal file
@ -0,0 +1,62 @@
|
||||
#=======================================================================
|
||||
# Begin specific part to omniorb
|
||||
# (include from file adm/unix/make_omniorb generated by
|
||||
# adm/unix/make_omniorb.in)
|
||||
#=======================================================================
|
||||
# -* Makefile *-
|
||||
#
|
||||
# Author : Patrick GOLDBRONN (CEA)
|
||||
# Date : 29/06/2001
|
||||
# $Header$
|
||||
#
|
||||
|
||||
# Client and server object are the same with omniorb
|
||||
# There are one header file and one source file generate
|
||||
|
||||
#IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ))
|
||||
|
||||
# dependancies between idl and it's generated files
|
||||
%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${KERNEL_ROOT_DIR}/idl/salome/%.idl
|
||||
$(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
|
||||
|
||||
%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${GEOM_ROOT_DIR}/idl/salome/%.idl
|
||||
$(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
|
||||
|
||||
#%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${MED_ROOT_DIR}/idl/salome/%.idl
|
||||
# $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
|
||||
|
||||
%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${SMESH_ROOT_DIR}/idl/salome/%.idl
|
||||
$(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
|
||||
|
||||
%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_builddir}/idl/salome/%.idl
|
||||
$(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
|
||||
|
||||
# dependncies between idl files
|
||||
depend_idl: .depidl
|
||||
|
||||
# we use cpp to generate dependencies between idl files.
|
||||
# we change cpp output to keep only idl file and transform it to get a suitable rule
|
||||
.depidl: $(IDL_FILES)
|
||||
@touch $@
|
||||
@for dep in $? dummy; do \
|
||||
if [ $$dep != "dummy" ]; then \
|
||||
echo Building dependencies for $$dep; \
|
||||
basedep=`basename $$dep .idl`; \
|
||||
header="$$basedep"$(IDL_CLN_H); \
|
||||
sed '\%^'"$$header"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
|
||||
$(CPP) $(C_DEPEND_FLAG) -I$(srcdir) $$dep 2>/dev/null | \
|
||||
sed `echo "s%$$basedep\\.idl%$$header:%g"` | \
|
||||
sed 's% $(srcdir)/% %g' | \
|
||||
sed 's% $(top_srcdir)/% %g' | \
|
||||
sed 's% $(top_builddir)/% %g' | \
|
||||
sed 's%^.*:\.o: *%%' | sed 's%^ *\\ *%%'| sed 's%^ *\(.*\):%\1:%' | \
|
||||
sed 's/\.idl/$(IDL_CLN_H)/' >>$@; \
|
||||
echo '' >>$@; \
|
||||
fi; \
|
||||
done ;
|
||||
|
||||
-include .depidl
|
||||
|
||||
#=======================================================================
|
||||
# End specific part to omniorb
|
||||
#=======================================================================
|
407
configure.in.base
Normal file
407
configure.in.base
Normal file
@ -0,0 +1,407 @@
|
||||
#
|
||||
# PLEASE DO NOT MODIFY configure.in FILE
|
||||
#
|
||||
# ALL CHANGES WILL BE DISCARDED BY THE NEXT
|
||||
# build_configure COMMAND
|
||||
#
|
||||
# CHANGES MUST BE MADE IN configure.in.base FILE
|
||||
#
|
||||
#
|
||||
# Author : Marc Tajchman (CEA)
|
||||
# Date : 28/06/2001
|
||||
# Modified by : Patrick GOLDBRONN (CEA)
|
||||
# Modified by : Marc Tajchman (CEA)
|
||||
#
|
||||
# Created from configure.in.base
|
||||
#
|
||||
|
||||
AC_INIT(src)
|
||||
AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files)
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
PACKAGE=salome
|
||||
AC_SUBST(PACKAGE)
|
||||
|
||||
VERSION=0.0.1
|
||||
AC_SUBST(VERSION)
|
||||
|
||||
dnl
|
||||
dnl Initialize source and build root directories
|
||||
dnl
|
||||
|
||||
ROOT_BUILDDIR=`pwd`
|
||||
ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
|
||||
cd $ROOT_SRCDIR
|
||||
ROOT_SRCDIR=`pwd`
|
||||
cd $ROOT_BUILDDIR
|
||||
|
||||
AC_SUBST(ROOT_SRCDIR)
|
||||
AC_SUBST(ROOT_BUILDDIR)
|
||||
|
||||
echo
|
||||
echo Source root directory : $ROOT_SRCDIR
|
||||
echo Build root directory : $ROOT_BUILDDIR
|
||||
echo
|
||||
echo
|
||||
|
||||
if test -z "$AR"; then
|
||||
AC_CHECK_PROGS(AR,ar xar,:,$PATH)
|
||||
fi
|
||||
AC_SUBST(AR)
|
||||
|
||||
dnl Export the AR macro so that it will be placed in the libtool file
|
||||
dnl correctly.
|
||||
export AR
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing make
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_INSTALL
|
||||
dnl
|
||||
dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
|
||||
|
||||
AC_ENABLE_DEBUG(yes)
|
||||
AC_DISABLE_PRODUCTION
|
||||
|
||||
echo ---------------------------------------------
|
||||
echo testing libtool
|
||||
echo ---------------------------------------------
|
||||
|
||||
dnl first, we set static to no!
|
||||
dnl if we want it, use --enable-static
|
||||
AC_ENABLE_STATIC(no)
|
||||
|
||||
AC_LIBTOOL_DLOPEN
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
dnl Fix up the INSTALL macro if it s a relative path. We want the
|
||||
dnl full-path to the binary instead.
|
||||
case "$INSTALL" in
|
||||
*install-sh*)
|
||||
INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
|
||||
;;
|
||||
esac
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing C/C++
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
cc_ok=no
|
||||
dnl inutil car libtool
|
||||
dnl AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_DEPEND_FLAG
|
||||
# AC_CC_WARNINGS([ansi])
|
||||
cc_ok=yes
|
||||
|
||||
dnl Library libdl :
|
||||
AC_CHECK_LIB(dl,dlopen)
|
||||
|
||||
dnl add library libm :
|
||||
AC_CHECK_LIB(m,ceil)
|
||||
|
||||
dnl
|
||||
dnl Well we use sstream which is not in gcc pre-2.95.3
|
||||
dnl We must test if it exists. If not, add it in include !
|
||||
dnl
|
||||
|
||||
AC_CXX_HAVE_SSTREAM
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo BOOST Library
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_BOOST
|
||||
|
||||
dnl
|
||||
dnl ---------------------------------------------
|
||||
dnl testing MPICH
|
||||
dnl ---------------------------------------------
|
||||
dnl
|
||||
|
||||
CHECK_MPICH
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing LEX \& YACC
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
lex_yacc_ok=no
|
||||
AC_PROG_YACC
|
||||
AC_PROG_LEX
|
||||
lex_yacc_ok=yes
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing python
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_PYTHON
|
||||
|
||||
dnl echo
|
||||
dnl echo ---------------------------------------------
|
||||
dnl echo testing java
|
||||
dnl echo ---------------------------------------------
|
||||
dnl echo
|
||||
|
||||
dnl CHECK_JAVA
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing swig
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_SWIG
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing threads
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
ENABLE_PTHREADS
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing omniORB
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_OMNIORB
|
||||
|
||||
dnl echo
|
||||
dnl echo ---------------------------------------------
|
||||
dnl echo testing mico
|
||||
dnl echo ---------------------------------------------
|
||||
dnl echo
|
||||
|
||||
dnl CHECK_MICO
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo default ORB : omniORB
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
DEFAULT_ORB=omniORB
|
||||
CHECK_CORBA
|
||||
|
||||
AC_SUBST_FILE(CORBA)
|
||||
corba=make_$ORB
|
||||
CORBA=adm_local/unix/$corba
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing openGL
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_OPENGL
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing QT
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_QT
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing VTK
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_VTK
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing HDF5
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_HDF5
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo testing MED2
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_MED2
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Testing OpenCascade
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_CAS
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Testing html generators
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_HTML_GENERATORS
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Testing Kernel
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_KERNEL
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Testing Geom
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_GEOM
|
||||
|
||||
# echo
|
||||
# echo ---------------------------------------------
|
||||
# echo Testing Med
|
||||
# echo ---------------------------------------------
|
||||
# echo
|
||||
#
|
||||
# CHECK_MED
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Testing Netgen
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_NETGEN
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Testing SMesh
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
CHECK_SMESH
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Summary
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
echo Configure
|
||||
variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok SMesh_ok Netgen_ok"
|
||||
|
||||
for var in $variables
|
||||
do
|
||||
printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
|
||||
eval echo \$$var
|
||||
done
|
||||
|
||||
echo
|
||||
echo "Default ORB : $DEFAULT_ORB"
|
||||
echo
|
||||
|
||||
dnl generals files which could be included in every makefile
|
||||
|
||||
AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
|
||||
AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
|
||||
AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
|
||||
|
||||
dnl les dependences
|
||||
AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
|
||||
|
||||
dnl We don t need to say when we re entering directories if we re using
|
||||
dnl GNU make becuase make does it for us.
|
||||
if test "X$GMAKE" = "Xyes"; then
|
||||
AC_SUBST(SETX) SETX=":"
|
||||
else
|
||||
AC_SUBST(SETX) SETX="set -x"
|
||||
fi
|
||||
|
||||
# make other build directories
|
||||
for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources idl
|
||||
do
|
||||
# if test ! -d $rep ; then
|
||||
# eval mkdir $rep
|
||||
# fi
|
||||
$INSTALL -d $rep
|
||||
done
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo copying resource files, shell scripts, and
|
||||
echo xml files
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
|
||||
dnl copy resources directories
|
||||
|
||||
#for i in `find $ROOT_SRCDIR -name 'resources' -print`
|
||||
#do
|
||||
# local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
|
||||
# local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
|
||||
# mkdir -p $local_res_dir
|
||||
# cd $local_res_dir
|
||||
# ln -fs $i
|
||||
# echo $local_res
|
||||
# cd $ROOT_BUILDDIR
|
||||
#done
|
||||
|
||||
dnl copy shells and utilities contained in the bin directory
|
||||
dnl excluding .in files (treated in AC-OUTPUT below) and CVS
|
||||
dnl directory
|
||||
|
||||
#mkdir -p bin/salome
|
||||
#cd bin/salome
|
||||
#for i in $ROOT_SRCDIR/bin/*
|
||||
#do
|
||||
# local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
|
||||
# case "$local_bin" in
|
||||
# *.in | *~) ;;
|
||||
# ./bin/CVS | ./bin/salome) ;;
|
||||
# *) /usr/bin/install -C $i .; echo $local_bin ;;
|
||||
# esac
|
||||
#done
|
||||
#cd $ROOT_BUILDDIR
|
||||
|
||||
AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
|
||||
|
||||
dnl copy xml files to the build tree (lib directory)
|
||||
dnl pourquoi ????
|
||||
|
||||
#cd lib
|
||||
#for i in `find $ROOT_SRCDIR -name "*.xml" -print`
|
||||
#do
|
||||
# ln -fs $i
|
||||
# echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
|
||||
#done
|
||||
#cd $ROOT_BUILDDIR
|
||||
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo generating Makefiles and configure files
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
#AC_OUTPUT_COMMANDS([ \
|
||||
# chmod +x ./bin/* \
|
||||
#])
|
||||
|
||||
## do not delete this line
|
65
idl/Makefile.in
Normal file
65
idl/Makefile.in
Normal file
@ -0,0 +1,65 @@
|
||||
#
|
||||
# generate dependencies for idl file :
|
||||
#
|
||||
|
||||
# source path
|
||||
top_srcdir=@top_srcdir@
|
||||
top_builddir=..
|
||||
srcdir=@srcdir@
|
||||
VPATH=.:${KERNEL_ROOT_DIR}/idl/salome:${GEOM_ROOT_DIR}/idl/salome :${SMESH_ROOT_DIR}/idl/salome
|
||||
#:${MED_ROOT_DIR}/idl/salome
|
||||
|
||||
@COMMENCE@
|
||||
|
||||
IDL_FILES = NETGENPlugin_Algorithm.idl
|
||||
|
||||
|
||||
# copy all idl file in $(top_builddir)/idl
|
||||
inc: $(top_builddir)/idl/salome $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
|
||||
|
||||
$(top_builddir)/idl/salome:
|
||||
$(INSTALL) -d $@
|
||||
|
||||
$(IDL_FILES:%=$(top_builddir)/idl/salome/%):$(IDL_FILES:%=$(top_srcdir)/idl/%)
|
||||
cp -f $^ $(top_builddir)/idl/salome
|
||||
|
||||
|
||||
# python wrap
|
||||
lib: pyidl
|
||||
|
||||
PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
|
||||
|
||||
pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
|
||||
|
||||
$(PYTHON_BUILD_SITE):
|
||||
$(INSTALL) -d $@
|
||||
|
||||
$(PYTHON_BUILD_SITE)/%_idl.py: $(top_builddir)/idl/salome/%.idl
|
||||
$(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_BUILD_SITE) $<
|
||||
|
||||
|
||||
# install python client (generated from idl file)
|
||||
install: $(IDL_FILES:%=$(top_builddir)/idl/salome/%)
|
||||
$(INSTALL) -d $(idldir) $(PYTHON_SITE_INSTALL)
|
||||
$(INSTALL_DATA) $^ $(idldir)
|
||||
@for file in $^ dummy; do \
|
||||
if [ $$file != "dummy" ]; then \
|
||||
$(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) -C$(PYTHON_SITE_INSTALL) $$file ; \
|
||||
fi ; \
|
||||
done ;
|
||||
|
||||
uninstall:
|
||||
-$(RM) $(IDL_FILES:%=$(idldir)/%)
|
||||
-$(RM) $(IDL_FILES:%.idl=$(PYTHON_SITE_INSTALL)/%_idl.py)
|
||||
|
||||
# clean
|
||||
cleandep:
|
||||
-$(RM) .dep*
|
||||
|
||||
clean: cleandep
|
||||
-$(RM) $(top_builddir)/idl/salome/*.idl
|
||||
-$(RM) $(PYTHON_BUILD_SITE)/*.py
|
||||
|
||||
distclean: clean
|
||||
-$(RM) Makefile
|
||||
|
45
idl/NETGENPlugin_Algorithm.idl
Normal file
45
idl/NETGENPlugin_Algorithm.idl
Normal file
@ -0,0 +1,45 @@
|
||||
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
|
||||
//
|
||||
//
|
||||
//
|
||||
// File : NETGENPlugin_Algorithm.idl
|
||||
// Author : Julia DOROVSKIKH
|
||||
// $Header$
|
||||
|
||||
#ifndef _SMESH_NETGENALGORITHM_IDL_
|
||||
#define _SMESH_NETGENALGORITHM_IDL_
|
||||
|
||||
#include "SMESH_Hypothesis.idl"
|
||||
|
||||
/*!
|
||||
* NETGENPlugin: interfaces to NETGEN related hypotheses and algorithms
|
||||
*/
|
||||
module NETGENPlugin
|
||||
{
|
||||
/*!
|
||||
* NETGENPlugin_NETGEN_3D: interface of "Tetrahedron (Netgen)" algorithm
|
||||
*/
|
||||
interface NETGENPlugin_NETGEN_3D : SMESH::SMESH_3D_Algo
|
||||
{
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif
|
19
resources/NETGENPlugin.xml
Normal file
19
resources/NETGENPlugin.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version='1.0' encoding='us-ascii'?>
|
||||
<!DOCTYPE meshers PUBLIC "" "desktop.dtd">
|
||||
|
||||
<!-- GUI customization for MESH component -->
|
||||
|
||||
<meshers>
|
||||
|
||||
<meshers-group name="NETGEN"
|
||||
resources="NETGENPlugin"
|
||||
server-lib="libNETGENEngine.so"
|
||||
gui-lib="">
|
||||
<algorithms>
|
||||
<algorithm type="NETGEN_3D"
|
||||
label-id="Tetrahedron (Netgen)"
|
||||
icon-id="mesh_algo_tetra.png"/>
|
||||
</algorithms>
|
||||
</meshers-group>
|
||||
|
||||
</meshers>
|
36
src/Makefile.in
Normal file
36
src/Makefile.in
Normal file
@ -0,0 +1,36 @@
|
||||
# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
|
||||
#
|
||||
#
|
||||
#
|
||||
# File : Makefile.in
|
||||
# Author : Patrick GOLDBRONN (CEA)
|
||||
# Module : SMESH
|
||||
# $Header$
|
||||
|
||||
top_srcdir=@top_srcdir@
|
||||
top_builddir=..
|
||||
srcdir=@srcdir@
|
||||
VPATH=.:@srcdir@
|
||||
|
||||
@COMMENCE@
|
||||
|
||||
SUBDIRS = NETGEN NETGENPlugin
|
||||
|
||||
@MODULE@
|
61
src/NETGEN/Makefile.in
Normal file
61
src/NETGEN/Makefile.in
Normal file
@ -0,0 +1,61 @@
|
||||
# -* Makefile *-
|
||||
#
|
||||
# Author : Edward AGAPOV (OCC)
|
||||
# Module : NETGENPLUGIN
|
||||
# Date : 10/01/2004
|
||||
#
|
||||
#
|
||||
|
||||
top_srcdir=@top_srcdir@
|
||||
top_builddir=../..
|
||||
srcdir=@srcdir@
|
||||
VPATH=
|
||||
|
||||
# build .so of NETGEN itself
|
||||
|
||||
@COMMENCE@
|
||||
|
||||
LIB = libNETGEN.la
|
||||
|
||||
@CONCLUDE@
|
||||
|
||||
LIB_OBJ_O = \
|
||||
linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o \
|
||||
improve3.o adfront3.o tetrarls.o prism2rls.o pyramidrls.o pyramid2rls.o \
|
||||
netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o \
|
||||
geomsearch.o secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o \
|
||||
meshing2.o meshing3.o meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o \
|
||||
msghandler.o meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems.o \
|
||||
clusters.o zrefine.o ngexception.o geomtest3d.o geom2d.o geom3d.o adtree.o \
|
||||
transform3d.o geomfuncs.o polynomial.o densemat.o vector.o basemat.o sparsmat.o \
|
||||
algprim.o brick.o manifold.o bspline2d.o meshsurf.o csgeom.o polyhedra.o curve2d.o \
|
||||
singularref.o edgeflw.o solid.o explicitcurve2d.o specpoin.o gencyl.o revolution.o \
|
||||
genmesh.o spline3d.o surface.o identify.o triapprox.o meshstlsurface.o stlline.o \
|
||||
stltopology.o stltool.o stlgeom.o stlgeomchart.o stlgeommesh.o table.o optmem.o \
|
||||
spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o array.o symbolta.o mystring.o \
|
||||
moveablemem.o spline2d.o splinegeometry2.o ngnewdelete.o nglib.o
|
||||
|
||||
NETGEN_LIBS_DIR=@NETGEN_LIBS_DIR@
|
||||
|
||||
$(LIB_OBJ_O):
|
||||
ar x $(NETGEN_LIBS_DIR)/libnginterface.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libcsg.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libgprim.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libmesh.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libopti.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libgen.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libla.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libstlgeom.a
|
||||
ar x $(NETGEN_LIBS_DIR)/libgeom2d.a
|
||||
rm -rf sgparser.o hprefinement.o parthreads.o writediffpack.o writepermas.o writeuser.o dynamicmem.o importsolution.o readuser.o writefeap.o writetecplot.o wuchemnitz.o extrusion.o writeabaqus.o writefluent.o writetochnog.o csgparser.o geom2dmesh.o
|
||||
|
||||
LIB_OBJ_LO = $(LIB_OBJ_O:%.o=%.lo)
|
||||
|
||||
%.lo: %.o; @ln -s $< $@
|
||||
|
||||
$(LIB): $(LIB_OBJ_O) $(LIB_OBJ_LO)
|
||||
LIB_OBJ = $(LIB_OBJ_LO)
|
||||
|
||||
LDFLAGS += -lg2c
|
||||
|
||||
MOSTLYCLEAN += $(LIB_OBJ_O)
|
102
src/NETGEN/ReadMeForNgUsers
Normal file
102
src/NETGEN/ReadMeForNgUsers
Normal file
@ -0,0 +1,102 @@
|
||||
The Netgen 4.3 from the web location : http://www.hpfem.jku.at/netgen/ is used
|
||||
in the SMESH Module of Salome2 distribution.
|
||||
|
||||
How to build Netgen for Salome
|
||||
------------------------------
|
||||
|
||||
Patch the official netgen 4.3 distribution:
|
||||
|
||||
$ cd netgen43
|
||||
$ patch -p1 < patch_directory/netgen43ForSalome.patch
|
||||
|
||||
Then run makeForSalome.sh:
|
||||
$ sh makeForSalome.sh
|
||||
|
||||
|
||||
Additional information for maintainers
|
||||
--------------------------------------
|
||||
|
||||
The SMESH Engine of SALOME2 (particularly the m4 file check_Netgen.m4) assume
|
||||
that Netgen is installed in the directory <netgen_installation_path> as follow:
|
||||
|
||||
prompt> ls <netgen_installation_path>
|
||||
|
||||
bin/ cshrc_for_netgen doc/ include/ lib/ tutorials/
|
||||
|
||||
prompt> ls <netgen_installation_path>/bin
|
||||
|
||||
LINUX/
|
||||
|
||||
prompt> ls <netgen_installation_path>/bin/LINUX/
|
||||
|
||||
demoapp/ ng ng.tcl ngtcltk/ startup.tcl
|
||||
|
||||
prompt> ls <netgen_installation_path>/bin/LINUX/demoapp/
|
||||
|
||||
demoapp.tcl
|
||||
|
||||
prompt> ls <netgen_installation_path>/bin/LINUX/ngtcltk/
|
||||
|
||||
dialog.tcl menustat.tcl ngicon.tcl parameters.tcl
|
||||
drawing.tcl nghelp.tcl ngvisual.tcl variables.tcl
|
||||
|
||||
prompt> ls <netgen_installation_path>/doc/
|
||||
|
||||
ng4.pdf usenetgen.ps
|
||||
|
||||
prompt> ls <netgen_installation_path>/include/
|
||||
|
||||
nglib.h
|
||||
|
||||
prompt> ls <netgen_installation_path>/lib/
|
||||
|
||||
LINUX/
|
||||
|
||||
prompt> ls <netgen_installation_path>/lib/LINUX/
|
||||
|
||||
libcsg.a libgeom2d.a libla.a libnginterface.a libstlgeom.a
|
||||
libgen.a libgprim.a libmesh.a libopti.a libvis.a
|
||||
|
||||
prompt> ls <netgen_installation_path>/tutorials/
|
||||
|
||||
boxcyl.geo cylinder.geo ficherea.geo part1.stl square.in2d
|
||||
cone.geo cylsphere.geo hinge.stl sculpture.geo trafo.geo
|
||||
cubeandspheres.geo demo2d.in2d lshape3d.geo shaft.geo twobricks.geo
|
||||
cube.geo ellipsoid.geo manyholes.geo sphere.geo twocubes.geo
|
||||
cubemcyl.geo ellipticcyl.geo matrix.geo sphereincube.geo twocyl.geo
|
||||
cubemsphere.geo
|
||||
|
||||
All *.tcl files are needed to control and initiate the Netgen mesher throughout its
|
||||
MHI (Machine Human Interface).<netgen_installation_path>/bin/LINUX/ng is the Netgen
|
||||
executable with its embarked MHI. All the libraries *.a should be compiled without
|
||||
the option -DOPENGL which is only needed for the Netgen MHI. netgen43 is assumed to
|
||||
be the directory downloaded from the above web location archive of Netgen. The library
|
||||
<netgen_installation_path>/lib/LINUX/libnginterface.a should contain the objects
|
||||
nglib.o (from netgen43/libsrc/interface/nglib.cpp) and ngnewdelete.o
|
||||
(from netgen43/ngtcltk/ngnewdelete.cpp).
|
||||
|
||||
To have that kind of distribution from the version in the above web location you
|
||||
should first compile Netgen as suggested in the netgen43/README.INSTALL file. It will
|
||||
then produce the executable ng linked statically with the libraries *.a. Then modify
|
||||
the Makefiles to remove -DOPENGL from compiler flags list, add the objects nglib.o
|
||||
and ngnewdelete.o to the library libnginterface.a and recompile the libraries only.
|
||||
|
||||
From the above web location perhaps, you will have to alter some Netgen sources to
|
||||
compile them; if you find any difficulties to do that, just ask me.
|
||||
|
||||
Nadir
|
||||
|
||||
********************************
|
||||
* Dr Nadir Bouhamou *
|
||||
* Ingénieur-chercheur *
|
||||
* Engineer-Researcher *
|
||||
* *
|
||||
* CEA Saclay *
|
||||
* DEN/DM2S/SFME/LGLS *
|
||||
* Bat 454 Pièce 5A *
|
||||
* 91191 Gif-Sur-Yvette cédex *
|
||||
* *
|
||||
* Tél: +33 (0)1 69 08 73 07 *
|
||||
* Fax: +33 (0)1 69 08 96 96 *
|
||||
* email: nadir.bouhamou@cea.fr *
|
||||
********************************
|
221
src/NETGEN/netgen43ForSalome.patch
Normal file
221
src/NETGEN/netgen43ForSalome.patch
Normal file
@ -0,0 +1,221 @@
|
||||
diff -N -r -u netgen43/libsrc/include/spline2d.hpp /tmp/netgen43/libsrc/include/spline2d.hpp
|
||||
--- netgen43/libsrc/include/spline2d.hpp 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ /tmp/netgen43/libsrc/include/spline2d.hpp 2003-12-10 16:28:12.000000000 +0100
|
||||
@@ -0,0 +1 @@
|
||||
+#include "../geom2d/spline2d.hpp"
|
||||
diff -N -r -u netgen43/libsrc/include/splinegeometry2.hpp /tmp/netgen43/libsrc/include/splinegeometry2.hpp
|
||||
--- netgen43/libsrc/include/splinegeometry2.hpp 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ /tmp/netgen43/libsrc/include/splinegeometry2.hpp 2003-12-10 16:28:23.000000000 +0100
|
||||
@@ -0,0 +1 @@
|
||||
+#include "../geom2d/splinegeometry2.hpp"
|
||||
diff -N -r -u netgen43/libsrc/interface/Makefile /tmp/netgen43/libsrc/interface/Makefile
|
||||
--- netgen43/libsrc/interface/Makefile 2003-05-07 16:01:43.000000000 +0200
|
||||
+++ /tmp/netgen43/libsrc/interface/Makefile 2003-12-10 15:59:47.000000000 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-src = nginterface.cpp writeuser.cpp writediffpack.cpp writeabaqus.cpp writefluent.cpp writepermas.cpp writetochnog.cpp writetecplot.cpp wuchemnitz.cpp writetochnog.cpp writefeap.cpp readuser.cpp importsolution.cpp
|
||||
+src = writeuser.cpp writediffpack.cpp writeabaqus.cpp writefluent.cpp writepermas.cpp writetochnog.cpp writetecplot.cpp wuchemnitz.cpp writetochnog.cpp writefeap.cpp readuser.cpp importsolution.cpp nglib.cpp ngnewdelete.cpp
|
||||
#
|
||||
lib = nginterface
|
||||
libpath = libsrc/interface
|
||||
diff -N -r -u netgen43/libsrc/interface/nglib.cpp /tmp/netgen43/libsrc/interface/nglib.cpp
|
||||
--- netgen43/libsrc/interface/nglib.cpp 2003-05-07 16:01:43.000000000 +0200
|
||||
+++ /tmp/netgen43/libsrc/interface/nglib.cpp 2003-12-10 16:32:54.000000000 +0100
|
||||
@@ -23,6 +23,20 @@
|
||||
|
||||
#include "nglib.h"
|
||||
|
||||
+namespace netgen
|
||||
+{
|
||||
+ char geomfilename [100];
|
||||
+
|
||||
+ //Destination for messages, errors, ...
|
||||
+ void Ng_PrintDest(const char * s)
|
||||
+ {
|
||||
+ (*mycout) << s << flush;
|
||||
+ }
|
||||
+
|
||||
+#include <spline2d.hpp>
|
||||
+#include <splinegeometry2.hpp>
|
||||
+}
|
||||
+
|
||||
using namespace netgen;
|
||||
|
||||
// constants and types:
|
||||
@@ -171,8 +185,6 @@
|
||||
// CSG Geometry
|
||||
|
||||
// FlexLexer * lexer;
|
||||
-char geomfilename [100];
|
||||
-
|
||||
|
||||
// 2D Meshing Functions:
|
||||
|
||||
@@ -362,7 +374,18 @@
|
||||
cout << "e(" << readedges.Get(i) << "," << readedges.Get(i+1) << ")" << endl;
|
||||
}
|
||||
*/
|
||||
- geo->AddEdges(readedges);
|
||||
+
|
||||
+ ARRAY< Point<3> > readedges1;
|
||||
+
|
||||
+ for (i = 1; i <= readedges.Size(); i++)
|
||||
+ {
|
||||
+ Point3d readedgesData = readedges.Get(i);
|
||||
+ Point <3> readedges1Data = Point<3>(readedgesData.X(),readedgesData.Y(),readedgesData.Z());
|
||||
+
|
||||
+ readedges1.Append(readedges1Data);
|
||||
+ }
|
||||
+
|
||||
+ geo->AddEdges(readedges1);
|
||||
}
|
||||
|
||||
if (geo->GetStatus() == STLTopology::STL_GOOD || geo->GetStatus() == STLTopology::STL_WARNING) return NG_OK;
|
||||
@@ -472,7 +495,14 @@
|
||||
n = Vec3d(nv[0],nv[1],nv[2]);
|
||||
}
|
||||
|
||||
- readtrias.Append(STLReadTriangle(apts,n));
|
||||
+ Point<3> apts1[3];
|
||||
+ apts1[0] = Point<3>(p1[0],p1[1],p1[2]);
|
||||
+ apts1[1] = Point<3>(p2[0],p2[1],p2[2]);
|
||||
+ apts1[2] = Point<3>(p3[0],p3[1],p3[2]);
|
||||
+
|
||||
+ Vec<3> n1 = Vec<3>(n.X(),n.Y(),n.Z());
|
||||
+
|
||||
+ readtrias.Append(STLReadTriangle(apts1,n1));
|
||||
}
|
||||
|
||||
// add (optional) edges:
|
||||
@@ -487,30 +517,29 @@
|
||||
|
||||
// compatibility functions:
|
||||
|
||||
-void MyError (const char * ch)
|
||||
+void netgen::MyError (const char * ch)
|
||||
{
|
||||
cerr << ch;
|
||||
}
|
||||
|
||||
-//Destination for messages, errors, ...
|
||||
-void Ng_PrintDest(const char * s)
|
||||
-{
|
||||
- (*mycout) << s << flush;
|
||||
-}
|
||||
-
|
||||
-
|
||||
-double GetTime ()
|
||||
+double netgen::GetTime ()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
-void ResetTime ()
|
||||
+void netgen::ResetTime ()
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
-void MyBeep (int i)
|
||||
+void netgen::MyBeep (int i)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
+void MeshFromSpline2D (SplineGeometry2d & geometry,
|
||||
+ Mesh *& mesh,
|
||||
+ MeshingParameters & mp)
|
||||
+{
|
||||
+ MeshFromSpline2D (geometry, mesh, mp);
|
||||
+}
|
||||
diff -N -r -u netgen43/libsrc/makefile.mach.LINUX /tmp/netgen43/libsrc/makefile.mach.LINUX
|
||||
--- netgen43/libsrc/makefile.mach.LINUX 2003-05-07 16:01:43.000000000 +0200
|
||||
+++ /tmp/netgen43/libsrc/makefile.mach.LINUX 2003-12-10 15:12:18.000000000 +0100
|
||||
@@ -14,7 +14,8 @@
|
||||
#
|
||||
CFLAGS2 =
|
||||
# pg stands for profiling - also in linkflags2
|
||||
-CPLUSPLUSFLAGS2 = -O2 -I/usr/X11R6/include -DLINUX -DOPENGL
|
||||
+#CPLUSPLUSFLAGS2 = -O2 -I/usr/X11R6/include -DLINUX -DOPENGL
|
||||
+CPLUSPLUSFLAGS2 = -O2 -I/usr/X11R6/include -DLINUX
|
||||
# -fomit-frame-pointer
|
||||
# -ffast-math
|
||||
#
|
||||
diff -N -r -u netgen43/libsrc/meshing/improve2.cpp /tmp/netgen43/libsrc/meshing/improve2.cpp
|
||||
--- netgen43/libsrc/meshing/improve2.cpp 2003-05-07 16:01:43.000000000 +0200
|
||||
+++ /tmp/netgen43/libsrc/meshing/improve2.cpp 2003-12-10 15:42:00.000000000 +0100
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "meshing.hpp"
|
||||
#include <opti.hpp>
|
||||
|
||||
-#include <visual.hpp>
|
||||
+/*#include <visual.hpp>*/
|
||||
|
||||
|
||||
namespace netgen
|
||||
diff -N -r -u netgen43/libsrc/meshing/meshing2.cpp /tmp/netgen43/libsrc/meshing/meshing2.cpp
|
||||
--- netgen43/libsrc/meshing/meshing2.cpp 2003-05-07 16:01:43.000000000 +0200
|
||||
+++ /tmp/netgen43/libsrc/meshing/meshing2.cpp 2003-12-10 15:34:35.000000000 +0100
|
||||
@@ -1785,7 +1785,7 @@
|
||||
|
||||
|
||||
#else
|
||||
-void glrender (int wait)
|
||||
+void netgen::glrender (int wait)
|
||||
{
|
||||
;
|
||||
}
|
||||
diff -N -r -u netgen43/libsrc/visualization/stlmeshing.cpp /tmp/netgen43/libsrc/visualization/stlmeshing.cpp
|
||||
--- netgen43/libsrc/visualization/stlmeshing.cpp 2003-05-07 16:01:43.000000000 +0200
|
||||
+++ /tmp/netgen43/libsrc/visualization/stlmeshing.cpp 2003-12-10 15:52:53.000000000 +0100
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <stlgeom.hpp>
|
||||
|
||||
#include <meshing.hpp>
|
||||
-#include <visual.hpp>
|
||||
+/*#include <visual.hpp>*/
|
||||
|
||||
namespace netgen
|
||||
{
|
||||
diff -N -r -u netgen43/Makefile /tmp/netgen43/Makefile
|
||||
--- netgen43/Makefile 2003-05-07 16:01:43.000000000 +0200
|
||||
+++ /tmp/netgen43/Makefile 2003-12-10 15:11:41.000000000 +0100
|
||||
@@ -35,7 +35,8 @@
|
||||
.SUFFIXES: .cpp .o
|
||||
#
|
||||
#
|
||||
-CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include -DOPENGL
|
||||
+#CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include -DOPENGL
|
||||
+CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include
|
||||
LINKFLAGS1 = -lGL -lGLU -lX11 -lXext -lXmu
|
||||
#
|
||||
CPLUSPLUSFLAGS = $(CPLUSPLUSFLAGS1) $(CPLUSPLUSFLAGS2) $(CPLUSPLUSFLAGS3)
|
||||
diff -N -r -u netgen43/makeForSalome.sh /tmp/netgen43/makeForSalome.sh
|
||||
--- netgen43/makeForSalome.sh 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ /tmp/netgen43/makeForSalome.sh 2004-01-05 12:33:59.000000000 +0100
|
||||
@@ -0,0 +1,26 @@
|
||||
+#! /bin/sh
|
||||
+cp ngtcltk/ngnewdelete.* libsrc/interface/
|
||||
+
|
||||
+MACHINE=LINUX
|
||||
+export MACHINE
|
||||
+make -C libsrc/csg
|
||||
+make -C libsrc/general
|
||||
+make -C libsrc/geom2d
|
||||
+make -C libsrc/gprim
|
||||
+make -C libsrc/interface
|
||||
+make -C libsrc/linalg
|
||||
+make -C libsrc/meshing
|
||||
+make -C libsrc/opti
|
||||
+make -C libsrc/stlgeom
|
||||
+
|
||||
+if [ ! -d install ] ; then
|
||||
+ mkdir install
|
||||
+fi
|
||||
+
|
||||
+cp -r lib install/
|
||||
+
|
||||
+if [ ! -d install/include ] ; then
|
||||
+ mkdir install/include
|
||||
+fi
|
||||
+
|
||||
+cp libsrc/interface/nglib.h install/include
|
35
src/NETGENPlugin/Makefile.in
Normal file
35
src/NETGENPlugin/Makefile.in
Normal file
@ -0,0 +1,35 @@
|
||||
# -* Makefile *-
|
||||
#
|
||||
# Author : Edward AGAPOV (OCC)
|
||||
# Module : NETGENPLUGIN
|
||||
# Date : 10/01/2004
|
||||
#
|
||||
#
|
||||
|
||||
# source path
|
||||
top_srcdir=@top_srcdir@
|
||||
top_builddir=../..
|
||||
srcdir=@srcdir@
|
||||
VPATH=.:@srcdir@
|
||||
|
||||
@COMMENCE@
|
||||
|
||||
# .po files to transform in .qm
|
||||
PO_FILES = NETGENPlugin_icons.po
|
||||
|
||||
LIB_SRC = \
|
||||
NETGENPlugin_NETGEN_3D.cxx \
|
||||
NETGENPlugin_NETGEN_3D_i.cxx \
|
||||
NETGENPlugin_i.cxx
|
||||
|
||||
LIB_SERVER_IDL = NETGENPlugin_Algorithm.idl
|
||||
|
||||
# Libraries targets
|
||||
LIB = libNETGENEngine.la
|
||||
|
||||
NETGEN_INCLUDES = @NETGEN_INCLUDES@
|
||||
CPPFLAGS += $(NETGEN_INCLUDES)
|
||||
CXXFLAGS += $(NETGEN_INCLUDES)
|
||||
LDFLAGS += -lNETGEN
|
||||
|
||||
@CONCLUDE@
|
1064
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx
Normal file
1064
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx
Normal file
File diff suppressed because it is too large
Load Diff
43
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx
Normal file
43
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx
Normal file
@ -0,0 +1,43 @@
|
||||
//=============================================================================
|
||||
// File : NETGENPlugin_NETGEN_3D.hxx
|
||||
// Moved here from SMESH_NETGEN_3D.hxx
|
||||
// Created : lundi 27 Janvier 2003
|
||||
// Author : Nadir BOUHAMOU (CEA)
|
||||
// Project : SALOME
|
||||
// Copyright : CEA 2003
|
||||
// $Header$
|
||||
//=============================================================================
|
||||
|
||||
#ifndef _NETGENPlugin_NETGEN_3D_HXX_
|
||||
#define _NETGENPlugin_NETGEN_3D_HXX_
|
||||
|
||||
#include "SMESH_3D_Algo.hxx"
|
||||
#include "SMESH_Mesh.hxx"
|
||||
#include "StdMeshers_MaxElementVolume.hxx"
|
||||
#include "Utils_SALOME_Exception.hxx"
|
||||
|
||||
class NETGENPlugin_NETGEN_3D: public SMESH_3D_Algo
|
||||
{
|
||||
public:
|
||||
NETGENPlugin_NETGEN_3D(int hypId, int studyId, SMESH_Gen* gen);
|
||||
virtual ~NETGENPlugin_NETGEN_3D();
|
||||
|
||||
virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
|
||||
const TopoDS_Shape& aShape,
|
||||
SMESH_Hypothesis::Hypothesis_Status& aStatus);
|
||||
|
||||
virtual bool Compute(SMESH_Mesh& aMesh,
|
||||
const TopoDS_Shape& aShape);
|
||||
|
||||
ostream & SaveTo(ostream & save);
|
||||
istream & LoadFrom(istream & load);
|
||||
friend ostream & operator << (ostream & save, NETGENPlugin_NETGEN_3D & hyp);
|
||||
friend istream & operator >> (istream & load, NETGENPlugin_NETGEN_3D & hyp);
|
||||
|
||||
protected:
|
||||
double _maxElementVolume;
|
||||
|
||||
const StdMeshers_MaxElementVolume* _hypMaxElementVolume;
|
||||
};
|
||||
|
||||
#endif
|
85
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.cxx
Normal file
85
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.cxx
Normal file
@ -0,0 +1,85 @@
|
||||
// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
|
||||
//
|
||||
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
|
||||
//
|
||||
//
|
||||
//
|
||||
// File : NETGENPlugin_NETGEN_3D_i.cxx
|
||||
// Moved here from SMESH_NETGEN_3D_i.cxx
|
||||
// Author : Nadir Bouhamou CEA
|
||||
// Module : SMESH
|
||||
// $Header$
|
||||
|
||||
using namespace std;
|
||||
#include "NETGENPlugin_NETGEN_3D_i.hxx"
|
||||
#include "SMESH_Gen.hxx"
|
||||
|
||||
#include "Utils_CorbaException.hxx"
|
||||
#include "utilities.h"
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
* NETGENPlugin_NETGEN_3D_i::NETGENPlugin_NETGEN_3D_i
|
||||
*
|
||||
* Constructor
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
NETGENPlugin_NETGEN_3D_i::NETGENPlugin_NETGEN_3D_i( PortableServer::POA_ptr thePOA,
|
||||
int theStudyId,
|
||||
::SMESH_Gen* theGenImpl )
|
||||
: SALOME::GenericObj_i( thePOA ),
|
||||
SMESH_Hypothesis_i( thePOA ),
|
||||
SMESH_Algo_i( thePOA ),
|
||||
SMESH_3D_Algo_i( thePOA )
|
||||
{
|
||||
MESSAGE( "NETGENPlugin_NETGEN_3D_i::NETGENPlugin_NETGEN_3D_i" );
|
||||
myBaseImpl = new ::NETGENPlugin_NETGEN_3D( theGenImpl->GetANewId(),
|
||||
theStudyId,
|
||||
theGenImpl );
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
* NETGENPlugin_NETGEN_3D_i::~NETGENPlugin_NETGEN_3D_i
|
||||
*
|
||||
* Destructor
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
NETGENPlugin_NETGEN_3D_i::~NETGENPlugin_NETGEN_3D_i()
|
||||
{
|
||||
MESSAGE( "NETGENPlugin_NETGEN_3D_i::~NETGENPlugin_NETGEN_3D_i" );
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
* NETGENPlugin_NETGEN_3D_i::GetImpl
|
||||
*
|
||||
* Get implementation
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
::NETGENPlugin_NETGEN_3D* NETGENPlugin_NETGEN_3D_i::GetImpl()
|
||||
{
|
||||
MESSAGE( "NETGENPlugin_NETGEN_3D_i::GetImpl" );
|
||||
return ( ::NETGENPlugin_NETGEN_3D* )myBaseImpl;
|
||||
}
|
||||
|
58
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.hxx
Normal file
58
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.hxx
Normal file
@ -0,0 +1,58 @@
|
||||
// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
|
||||
//
|
||||
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
|
||||
//
|
||||
//
|
||||
//
|
||||
// File : NETGENPlugin_NETGEN_3D_i.hxx
|
||||
// Moved here from SMESH_NETGEN_3D_i.hxx
|
||||
// Author : Nadir Bouhamou CEA
|
||||
// Module : SMESH
|
||||
// $Header$
|
||||
|
||||
#ifndef _NETGENPlugin_NETGEN_3D_I_HXX_
|
||||
#define _NETGENPlugin_NETGEN_3D_I_HXX_
|
||||
|
||||
#include <SALOMEconfig.h>
|
||||
#include CORBA_SERVER_HEADER(NETGENPlugin_Algorithm)
|
||||
|
||||
#include "SMESH_3D_Algo_i.hxx"
|
||||
#include "NETGENPlugin_NETGEN_3D.hxx"
|
||||
|
||||
// ======================================================
|
||||
// NETGEN 3d algorithm
|
||||
// ======================================================
|
||||
class NETGENPlugin_NETGEN_3D_i:
|
||||
public virtual POA_NETGENPlugin::NETGENPlugin_NETGEN_3D,
|
||||
public virtual SMESH_3D_Algo_i
|
||||
{
|
||||
public:
|
||||
// Constructor
|
||||
NETGENPlugin_NETGEN_3D_i( PortableServer::POA_ptr thePOA,
|
||||
int theStudyId,
|
||||
::SMESH_Gen* theGenImpl );
|
||||
// Destructor
|
||||
virtual ~NETGENPlugin_NETGEN_3D_i();
|
||||
|
||||
// Get implementation
|
||||
::NETGENPlugin_NETGEN_3D* GetImpl();
|
||||
};
|
||||
|
||||
#endif
|
57
src/NETGENPlugin/NETGENPlugin_i.cxx
Normal file
57
src/NETGENPlugin/NETGENPlugin_i.cxx
Normal file
@ -0,0 +1,57 @@
|
||||
// SMESH NETGENPlugin : implementaion of SMESH idl descriptions
|
||||
//
|
||||
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
|
||||
//
|
||||
//
|
||||
//
|
||||
// File : NETGENPlugin.cxx
|
||||
// Author : Julia DOROVSKIKH
|
||||
// Module : SMESH
|
||||
// $Header$
|
||||
|
||||
using namespace std;
|
||||
#include "utilities.h"
|
||||
|
||||
#include "NETGENPlugin_NETGEN_3D_i.hxx"
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
*
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
extern "C"
|
||||
{
|
||||
GenericHypothesisCreator_i* GetHypothesisCreator (const char* aHypName)
|
||||
{
|
||||
MESSAGE("GetHypothesisCreator " << aHypName);
|
||||
|
||||
GenericHypothesisCreator_i* aCreator = 0;
|
||||
|
||||
// Hypotheses
|
||||
|
||||
// Algorithms
|
||||
if (strcmp(aHypName, "NETGEN_3D") == 0)
|
||||
aCreator = new HypothesisCreator_i<NETGENPlugin_NETGEN_3D_i>;
|
||||
else ;
|
||||
|
||||
return aCreator;
|
||||
}
|
||||
}
|
20
src/NETGENPlugin/NETGENPlugin_icons.po
Normal file
20
src/NETGENPlugin/NETGENPlugin_icons.po
Normal file
@ -0,0 +1,20 @@
|
||||
# This is a Qt message file in .po format. Each msgid starts with
|
||||
# a scope. This scope should *NOT* be translated - eg. "Foo::Bar"
|
||||
# would be translated to "Pub", not "Foo::Pub".
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"POT-Creation-Date: 2002-05-28 10:57:43 AM CEST\n"
|
||||
"PO-Revision-Date: YYYY-MM-DD\n"
|
||||
"Last-Translator: FULLNAME <EMAIL@ADDRESS>\n"
|
||||
"Content-Type: text/plain; charset=iso-8859-1\n"
|
||||
|
||||
|
||||
#-----------------------------------------------------------
|
||||
# ObjectBrowser
|
||||
#-----------------------------------------------------------
|
||||
|
||||
#mesh_tree_algo_netgen
|
||||
msgid "ICON_SMESH_TREE_ALGO_NETGEN_3D"
|
||||
msgstr "mesh_tree_algo_tetra.png"
|
||||
#msgstr "mesh_tree_algo_netgen.png"
|
Loading…
Reference in New Issue
Block a user