Skip to content
Snippets Groups Projects
Commit 451723b7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

work with OCE (OpenCASCADE Community Edition) + support OCC 6.5.2

parent bef13716
No related branches found
No related tags found
No related merge requests found
......@@ -757,7 +757,7 @@ if(ENABLE_OCC)
list(LENGTH OCC_LIBS NUM_OCC_LIBS)
if(NUM_OCC_LIBS EQUAL NUM_OCC_LIBS_REQUIRED)
find_path(OCC_INC "BRep_Tool.hxx" PATHS ENV CASROOT PATH_SUFFIXES inc
include opencascade)
include include/oce opencascade)
if(OCC_INC)
set_config_option(HAVE_OCC "OpenCascade")
list(APPEND EXTERNAL_LIBRARIES ${OCC_LIBS})
......
......@@ -338,9 +338,10 @@ bool OCCFace::buildSTLTriangulation(bool force)
BRepBndLib::Add(s, aBox);
BRepMesh_FastDiscret aMesher(0.1, 0.5, aBox, Standard_False, Standard_False,
Standard_True, Standard_False);
#if (OCC_VERSION_MAJOR == 6) && (OCC_VERSION_MINOR < 5)
aMesher.Add(s);
#if !((OCC_VERSION_MAJOR == 6) && (OCC_VERSION_MINOR < 5))
aMesher.Process(s);
#else
aMesher.Perform(s);
#endif
TopLoc_Location loc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment