]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Merge from V6_4_BR 05/12/2011
authorvsr <vsr@opencascade.com>
Mon, 5 Dec 2011 11:52:38 +0000 (11:52 +0000)
committervsr <vsr@opencascade.com>
Mon, 5 Dec 2011 11:52:38 +0000 (11:52 +0000)
adm_local/cmake_files/FindBLSURF.cmake
adm_local/unix/config_files/check_BLSURF.m4
configure.ac
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx
src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx

index 0e514bef30ba48c62e072f330eae8ed8614db2e4..3b9020dcc0e605bc6d8d2a499b7fcc1524540daf 100644 (file)
@@ -35,10 +35,12 @@ ELSE(WINDOWS)
 ENDIF(WINDOWS)
 
 FIND_LIBRARY(BLSurf BLSurf PATHS ${BLSURF_LIBS_PATHS})
+FIND_LIBRARY(PreCAD PreCAD PATHS ${BLSURF_LIBS_PATHS})
 FIND_LIBRARY(distene distene PATHS ${BLSURF_LIBS_PATHS})
 
 SET(BLSURF_LIBS)
 SET(BLSURF_LIBS ${BLSURF_LIBS} ${BLSurf})
+SET(BLSURF_LIBS ${BLSURF_LIBS} ${PreCAD})
 IF(distene)
   SET(BLSURF_LIBS ${BLSURF_LIBS} ${distene})
 ENDIF(distene)
index e96e4250fe3f9e2b0139ff09306e8005afe2d6de..cf519a3b561771b1800ce543f844842dcc8e211e 100644 (file)
@@ -61,7 +61,11 @@ if test "$with_blsurf" != "no" ; then
 
     LOCAL_INCLUDES="-I$BLSURF_HOME/include"
     LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux"
-    if test $(`which arch`) = x86_64 ; then
+    archtest="$(`which arch`)"
+    if test "x$archtest" = "x" ; then
+      archtest="`uname -m`"
+    fi
+    if test $archtest = "x86_64" ; then
         LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux_64"
     fi
     LOCAL_LIBS="${LOCAL_LIBS} -ldistene -lBLSurf -lPreCAD"
index 060099d9cd52512933f31dc65a70f34d40566912..000d1239f567b42a957a1782f7752f594ee3ed3b 100644 (file)
@@ -23,7 +23,7 @@
 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 # ---
 #
-AC_INIT([Salome2 Project BLSURFPLUGIN module], [6.3.1], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
+AC_INIT([Salome2 Project BLSURFPLUGIN module], [6.4.0], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
index 070ce9f2ccf9d2ef91e4013dd49257b035091d59..1bb9ecfb5b82bcc41989d4a50eeb30d7752b398c 100644 (file)
@@ -1781,6 +1781,10 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape)
     if ( BRep_Tool::Curve(TopoDS::Edge( emap( i )), loc, f,l).IsNull() )
       if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( emap( i )))
         sm->SetIsAlwaysComputed( true );
+  for (int i = 1; i <= pmap.Extent(); i++)
+      if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( pmap( i )))
+        if ( !sm->IsMeshComputed() )
+          sm->SetIsAlwaysComputed( true );
 
   delete [] nodes;
 
index 4c90a3c4339d164504be0e7f0f7765352063703f..6733fc8e0a62b511833423cb2150d81d070aba89 100644 (file)
 #include <TopoDS_Face.hxx>
 #include <TopoDS_Shape.hxx>
 
+#ifdef HAVE_FINITE
+#undef HAVE_FINITE            // VSR: avoid compilation warning on Linux : "HAVE_FINITE" redefined
+#endif
+// rnv: avoid compilation warning on Linux : "_POSIX_C_SOURCE" and "_XOPEN_SOURCE" are redefined
+#ifdef _POSIX_C_SOURCE
+#undef _POSIX_C_SOURCE
+#endif
+
+#ifdef _XOPEN_SOURCE
+#undef _XOPEN_SOURCE
+#endif
+
 #include <Python.h>
 #include "SMESH_2D_Algo.hxx"
 #include "SMESH_Mesh.hxx"
index 68990b71609ed4b7278728cf37965707be1c2207..a11636d68de65c2cf99c141178c2c290610d1be4 100644 (file)
@@ -87,7 +87,9 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis(int hypId, int studyId, SMESH_G
   const char* intOptionNames[] = { "addsurf_ivertex", "background", "CheckAdjacentEdges", "CheckCloseEdges",
       "CheckWellDefined", "coiter", "communication", "debug", "decim", "export_flag", "file_h", "frontal", "gridnu", "gridnv",
       "hinterpol_flag", "hmean_flag", "intermedfile", "memory", "normals", "optim", "pardom_flag", "pinch", "refs",
-      "rigid", "surforient", "tconf", "topo_collapse", "" // mark of end
+      "rigid", "surforient", "tconf", "topo_collapse",
+      "proximity", "prox_nb_layer", "prox_ratio", // detects the volumic proximity of surfaces
+      "" // mark of end
       };
   const char* doubleOptionNames[] = { "addsurf_angle", "addsurf_R", "addsurf_H", "addsurf_FG", "addsurf_r",
       "addsurf_PA", "angle_compcurv", "angle_ridge", "CoefRectangle", "eps_collapse", "eps_ends", "eps_pardom", "LSS",