--- /dev/null
+This is the version 2.1.0 of NETGENPLUGIN
+Compatible with :
+ - KERNEL 2.1.0
+ - SMESH 2.1.0
top_srcdir=@top_srcdir@
top_builddir=.
srcdir=@srcdir@
-VPATH=.:@srcdir@:@top_srcdir@/resources
+VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
@COMMENCE@
RESOURCES_FILES = NETGENPlugin.xml
+BIN_SCRIPT = VERSION
+
# copy header files in common directory ------------
ifeq ($(HAVE_SSTREAM),yes)
-$(RM) $@
$(LN_S) ../../$< $@
+# install script in $(bindir) :
+install-bin: $(BIN_SCRIPT)
+ $(INSTALL) -d $(bindir)
+ if test $(BIN_SCRIPT)X != X; then \
+ $(INSTALL_PROGRAM) $^ $(bindir); \
+ fi
+
# CLEAN --------------------
distclean: distclean-other
@MODULE@
+install: install-bin
--- /dev/null
+THIS IS SALOME - NETGENPLUGIN VERSION: 2.1.0
#include "NETGENPlugin_NETGEN_3D.hxx"
#include "SMESH_Gen.hxx"
#include "SMESH_Mesh.hxx"
+#include "SMESH_subMesh.hxx"
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
theHyp = (*itl); // use only the first hypothesis
string hypName = theHyp->GetName();
- int hypId = theHyp->GetID();
- SCRUTE(hypName);
+// int hypId = theHyp->GetID();
+// SCRUTE(hypName);
bool isOk = false;
Ng_Result status;
- status = Ng_GenerateVolumeMesh(Netgen_mesh, &Netgen_param);
+ try {
+ status = Ng_GenerateVolumeMesh(Netgen_mesh, &Netgen_param);
+ } catch (...) {
+ MESSAGE("An exception has been caught during the Volume Mesh Generation ...");
+ status = NG_VOLUME_FAILURE;
+ }
SCRUTE(status);