X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeVolume.h;h=9f8be19ba805b07a4ca650ca1cfc911d0a7f808d;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=b273fb4cdda9e0a6d3ed8e35c9b8af885fa2f21b;hpb=2c8455ba268cb7142fe59ee13421911385a1f423;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeVolume.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeVolume.h index b273fb4cd..9f8be19ba 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeVolume.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeVolume.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-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 @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// 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 // #ifndef GeomAlgoAPI_MakeVolume_H_ @@ -31,6 +30,7 @@ /// \brief Perform building solid (compsolid) from a list of faces. class GeomAlgoAPI_MakeVolume : public GeomAlgoAPI_MakeShape { + bool myAvoidInternal; // to remove internal faces from the result public: /// \brief Perform making volume. /// \param[in] theObjects list of faces. @@ -38,7 +38,16 @@ public: GEOMALGOAPI_EXPORT static std::shared_ptr make(const ListOfShape& theFaces); /// Constructor. - GEOMALGOAPI_EXPORT GeomAlgoAPI_MakeVolume(const ListOfShape& theFaces); + /// \param theFaces faces that will construct a solid + /// \param theAvoidInternal to remove internal faces from the result + GEOMALGOAPI_EXPORT GeomAlgoAPI_MakeVolume(const ListOfShape& theFaces, + const bool theAvoidInternal); + + /// \return the list of shapes modified from the shape \a theShape. + /// \param[in] theOldShape base shape. + /// \param[out] theNewShapes shapes modified from \a theShape. Does not cleared! + GEOMALGOAPI_EXPORT virtual void modified(const GeomShapePtr theOldShape, + ListOfShape& theNewShapes); private: /// Builds resulting shape.