Salome HOME
Bos #20438: [CEA] SIGSEGV in SHAPER and GEOM in Pipe binormal. Correction to obtain...
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ClsfSurf.hxx
index 76ea7ca72201b359424e04e8c0aee34167874c3c..dfa5d99ceddb7c7b506eabaf5b49e91879d839d0 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 #include <Standard.hxx>
 #include <Standard_DefineHandle.hxx>
-//#include <Handle_GEOMAlgo_ClsfSurf.hxx>
-#include <Handle_Geom_Surface.hxx>
 #include <GeomAdaptor_Surface.hxx>
 #include <GEOMAlgo_Clsf.hxx>
 #include <Standard_Boolean.hxx>
-#include <Handle_Geom_Curve.hxx>
 #include <Geom_Surface.hxx>
 #include <Geom_Curve.hxx>
 
@@ -58,7 +55,7 @@ class GEOMAlgo_ClsfSurf : public GEOMAlgo_Clsf
     void SetSurface(const Handle(Geom_Surface)& aS) ;
 
   Standard_EXPORT
-    const Handle_Geom_Surface& Surface() const;
+    const Handle(Geom_Surface)& Surface() const;
 
   Standard_EXPORT
     virtual  void Perform() ;
@@ -72,10 +69,10 @@ class GEOMAlgo_ClsfSurf : public GEOMAlgo_Clsf
   Standard_EXPORT
     virtual  Standard_Boolean CanBeON(const Handle(Geom_Surface)& aST) const;
 
-  DEFINE_STANDARD_RTTI(GEOMAlgo_ClsfSurf);
+  DEFINE_STANDARD_RTTIEXT(GEOMAlgo_ClsfSurf,GEOMAlgo_Clsf)
 
  protected:
-  Handle_Geom_Surface myS;
+  Handle(Geom_Surface) myS;
   GeomAdaptor_Surface myGAS;
 };
 #endif