From: mpa Date: Wed, 24 Feb 2016 13:50:06 +0000 (+0300) Subject: OCCT 7.0.0 porting X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmpa%2FOCCT-7.0.0_Porting;p=plugins%2Fblsurfplugin.git OCCT 7.0.0 porting --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Attractor.hxx b/src/BLSURFPlugin/BLSURFPlugin_Attractor.hxx index e4532e3..919ac1d 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Attractor.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Attractor.hxx @@ -48,12 +48,8 @@ #include #include -#include #include -#include #include -#include -#include #include #include #include diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 66f6b64..8a08417 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -2107,7 +2107,11 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, * (For this face, it will be called by cadsurf with your_face_object_ptr * as last parameter. */ +#if OCC_VERSION_MAJOR < 7 cad_face_t *fce = cad_face_new(c, iface, surf_fun, surfaces.back()); +#else + cad_face_t *fce = cad_face_new(c, iface, surf_fun, surfaces.back().get()); +#endif /* by default a face has no tag (color). The following call sets it to the same value as the Geom module ID : */ @@ -2362,7 +2366,11 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, } /* attach the edge to the current cadsurf face */ +#if OCC_VERSION_MAJOR < 7 cad_edge_t *edg = cad_edge_new(fce, ic, tmin, tmax, curv_fun, curves.back()); +#else + cad_edge_t *edg = cad_edge_new(fce, ic, tmin, tmax, curv_fun, curves.back().get()); +#endif /* by default an edge has no tag (color). The following call sets it to the same value as the edge_id : */