X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Extrusion.cpp;h=29c4aec277baa4167af118b36f05d4f343f9e261;hb=8d8878b385494638fbe5fad10bbcdee9c9d04f30;hp=d8eefb25d48e1cd0671f9010755540afadede6ca;hpb=8c99e5e8dd74d99dfbf534bd66b32b70ca134aa7;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Extrusion.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Extrusion.cpp index d8eefb25d..29c4aec27 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Extrusion.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Extrusion.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAlgoAPI_Extrusion.cpp // Created: 06 Jun 2014 // Author: Artem ZHIDKOV @@ -19,14 +21,14 @@ #include #include #include -#include +#include #include #include const double tolerance = Precision::Angular(); // Constructor GeomAlgoAPI_Extrusion::GeomAlgoAPI_Extrusion( - boost::shared_ptr theBasis, double theSize) + std::shared_ptr theBasis, double theSize) : mySize(theSize), myDone(false), myShape(new GeomAPI_Shape()), myFirst(new GeomAPI_Shape()), myLast(new GeomAPI_Shape()) { @@ -34,7 +36,7 @@ GeomAlgoAPI_Extrusion::GeomAlgoAPI_Extrusion( } //============================================================================ -void GeomAlgoAPI_Extrusion::build(const boost::shared_ptr& theBasis) +void GeomAlgoAPI_Extrusion::build(const std::shared_ptr& theBasis) { bool isFirstNorm = true; gp_Dir aShapeNormal; @@ -60,7 +62,7 @@ void GeomAlgoAPI_Extrusion::build(const boost::shared_ptr& theBas aResult = aBuilder->Shape(); // fill data map to keep correct orientation of sub-shapes for (TopExp_Explorer Exp(aResult,TopAbs_FACE); Exp.More(); Exp.Next()) { - boost::shared_ptr aCurrentShape(new GeomAPI_Shape()); + std::shared_ptr aCurrentShape(new GeomAPI_Shape()); aCurrentShape->setImpl(new TopoDS_Shape(Exp.Current())); myMap.bind(aCurrentShape, aCurrentShape); } @@ -98,19 +100,19 @@ const bool GeomAlgoAPI_Extrusion::hasVolume() const } //============================================================================ -const boost::shared_ptr& GeomAlgoAPI_Extrusion::shape () const +const std::shared_ptr& GeomAlgoAPI_Extrusion::shape () const { return myShape; } //============================================================================ -const boost::shared_ptr& GeomAlgoAPI_Extrusion::firstShape() +const std::shared_ptr& GeomAlgoAPI_Extrusion::firstShape() { return myFirst; } //============================================================================ -const boost::shared_ptr& GeomAlgoAPI_Extrusion::lastShape() +const std::shared_ptr& GeomAlgoAPI_Extrusion::lastShape() { return myLast; }