Salome HOME
Porting Salome to OCCT 7.7.0
[modules/geom.git] / src / AdvancedEngine / AdvancedEngine_SmoothingSurfaceDriver.cxx
index 42134d10bc576e67852027e20f778306c0879985..19c90b578c9af72291afcf1c02073e6ae5525c66 100644 (file)
 #include <TColgp_SequenceOfXYZ.hxx>
 #include <TColStd_Array1OfInteger.hxx>
 
+#include <Basics_OCCTVersion.hxx>
+
+#if OCC_VERSION_LARGE < 0x07070000
 #include <BRepAdaptor_HSurface.hxx>
+#else
+#include <BRepAdaptor_Surface.hxx>
+#endif
 
 #include <BRep_Builder.hxx>
 #include <BRepGProp.hxx>
@@ -117,9 +123,15 @@ TopoDS_Shape AdvancedEngine_SmoothingSurfaceDriver::MakeSmoothingSurfaceUnClosed
 
   GeomPlate_BuildPlateSurface aBuilder(3,10);
   // ** Initialization of surface
+#if OCC_VERSION_LARGE < 0x07070000
   Handle(BRepAdaptor_HSurface) HSI = new BRepAdaptor_HSurface();
   HSI->ChangeSurface().Initialize(aInitShape);
   aBuilder.LoadInitSurface( BRep_Tool::Surface(HSI->ChangeSurface().Face()));
+#else
+  Handle(BRepAdaptor_Surface) HSI = new BRepAdaptor_Surface();
+  HSI->Initialize(aInitShape);
+  aBuilder.LoadInitSurface( BRep_Tool::Surface(HSI->Face()) );
+#endif
 
   Standard_Integer j, j1, j2;
   // cout << "Init surface" << endl;