SHAPER  9.15.0
GeomAlgoAPI_Thickness.h
1 // Copyright (C) 2019-2025 CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef GeomAlgoAPI_Thickness_H_
21 #define GeomAlgoAPI_Thickness_H_
22 
23 #include <GeomAlgoAPI.h>
24 #include <GeomAlgoAPI_MakeShape.h>
25 
30 {
31  typedef std::map<GeomShapePtr, ListOfShape, GeomAPI_Shape::Comparator> MapModified;
32 
33 public:
38  GEOMALGOAPI_EXPORT GeomAlgoAPI_Thickness
39  (const GeomShapePtr& theShape,
40  const double theThickness,
41  const bool isInside);
42 
48  GEOMALGOAPI_EXPORT GeomAlgoAPI_Thickness
49  (const GeomShapePtr& theShape,
50  const ListOfShape& theFaces,
51  const double theThickness,
52  const bool isInside);
53 
57  GEOMALGOAPI_EXPORT virtual void generated(const GeomShapePtr theOldShape,
58  ListOfShape& theNewShapes);
59 
60 private:
62  void buildThickening(const GeomShapePtr& theShape,
63  const double theThickness,
64  const bool isInside);
65 
67  void buildHollowedSolid(const GeomShapePtr& theShape,
68  const ListOfShape& theFaces,
69  const double theThickness,
70  const bool isInside);
71 
72 private:
73  MapModified myGenerated;
74 };
75 
76 #endif
Interface to the root class of all topological shapes constructions.
Definition: GeomAlgoAPI_MakeShape.h:35
Perform Thickness or Hollowed Solid algorithm for the shape.
Definition: GeomAlgoAPI_Thickness.h:30
virtual GEOMALGOAPI_EXPORT void generated(const GeomShapePtr theOldShape, ListOfShape &theNewShapes)
Definition: GeomAlgoAPI_Thickness.cpp:54
GEOMALGOAPI_EXPORT GeomAlgoAPI_Thickness(const GeomShapePtr &theShape, const double theThickness, const bool isInside)
Perform thickening algorithm.
Definition: GeomAlgoAPI_Thickness.cpp:39