Salome HOME
Updated copyright comment
[modules/hexablock.git] / src / HEXABLOCK / HexSubShape.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 16c1ce5..92dcb37
@@ -1,12 +1,12 @@
 
 // C++ : Gestion des soous-shapes
 
-// Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2024  CEA, EDF
 //
 // 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
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
-// or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #include "HexSubShape.hxx"
 #include "HexNewShape.hxx"
 #include "HexXmlWriter.hxx"
 
-#ifndef NO_CASCADE
-
 #include <TopoDS.hxx>
 #include <BRepTools.hxx>
 #include <BRep_Builder.hxx>
@@ -43,8 +40,9 @@ SubShape::SubShape (NewShape* dad, int id, int dim)
    sub_ident  = id;
    sub_dim    = dim;
    maj_brep   = maj_shape = true;
+   kind_of    = KS_None; 
 }
-// ====================================================== updateShape
+// ====================================================== getShape
 const TopoDS_Shape& SubShape::getShape ()
 {
    if (maj_shape)
@@ -80,4 +78,3 @@ void SubShape::updateShape ()
    geo_shape = ss_parent->getGeoShape (sub_ident);
 }
 END_NAMESPACE_HEXA
-#endif