SET(CADSURF_LIBS_PATHS)
SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib)
+
+SET(suff)
+IF(CMAKE_SIZEOF_VOID_P STREQUAL 8)
+ SET(suff "_64")
+ENDIF()
+
IF(WINDOWS)
- SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/WinXP_VC9)
+ SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/WinXP${suff}_VC9)
ELSE(WINDOWS)
- IF(CMAKE_SIZEOF_VOID_P STREQUAL 8)
- SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/Linux_64)
- ELSE()
- SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/Linux)
- ENDIF()
+ SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/Linux${suff})
ENDIF(WINDOWS)
FIND_LIBRARY(mg-cadsurf mg-cadsurf PATHS ${CADSURF_LIBS_PATHS})
const BLSURFPlugin_Hypothesis* hyp,
cadsurf_session_t * css,
precad_session_t * pcs,
- const TopoDS_Shape& GeomShape,
+ const TopoDS_Shape& theGeomShape,
bool * use_precad
)
{
// Clear map so that it is not stored in the algorithm with old enforced vertices in it
EnfVertexCoords2EnfVertexList.clear();
- double diagonal = SMESH_Mesh::GetShapeDiagonalSize( GeomShape );
+ double diagonal = SMESH_Mesh::GetShapeDiagonalSize( theGeomShape );
double bbSegmentation = _gen->GetBoundaryBoxSegmentation();
int _physicalMesh = BLSURFPlugin_Hypothesis::GetDefaultPhysicalMesh();
int _geometricMesh = BLSURFPlugin_Hypothesis::GetDefaultGeometricMesh();
std::string grpName = BLSURFPlugin_Hypothesis::GetInternalEnforcedVertexAllFacesGroup(hyp);
MESSAGE("Setting Internal Enforced Vertices");
gp_Pnt aPnt;
- TopExp_Explorer exp (GeomShape, TopAbs_FACE);
+ TopExp_Explorer exp (theGeomShape, TopAbs_FACE);
for (; exp.More(); exp.Next()){
MESSAGE("Iterating shapes. Shape type is " << exp.Current().ShapeType());
TopExp_Explorer exp_face (exp.Current(), TopAbs_VERTEX, TopAbs_EDGE);