]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
OCCT 7.0.0 porting mpa/OCCT-7.0.0_Porting
authormpa <mpa@opencascade.com>
Wed, 24 Feb 2016 13:50:06 +0000 (16:50 +0300)
committermpa <mpa@opencascade.com>
Wed, 24 Feb 2016 13:50:06 +0000 (16:50 +0300)
src/BLSURFPlugin/BLSURFPlugin_Attractor.hxx
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index e4532e3cf6b4fdecee58a126d6741c5f09121ce9..919ac1dff28b18743790da8584510e3968272c29 100644 (file)
 #include <NCollection_Map.hxx>
 
 #include <Geom_Surface.hxx>
-#include <Handle_Geom_Surface.hxx>
 #include <Geom2d_Curve.hxx>
-#include <Handle_Geom2d_Curve.hxx>
 #include <Geom_Curve.hxx>
-#include <Handle_Geom_Curve.hxx>
-#include <Handle_AIS_InteractiveObject.hxx>
 #include <TopoDS_Vertex.hxx>
 #include <TopoDS_Edge.hxx>
 #include <TopoDS_Wire.hxx>
index 66f6b643ce62807c5098988f8e3630bf46ce8f47..8a08417da818539cd1b5020d91303ce1ec65c5a0 100644 (file)
@@ -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 : */