]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_CompositeBoolean.h
Salome HOME
[bos #24758] EDF 24017 - Problems with ExtrusionCut
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_CompositeBoolean.h
index 06c4d957fedf5669e0edd632cdce384e0e472072..bbcd26eb7cfd18c8eb163e5b1da495b7f841dd6d 100644 (file)
@@ -25,6 +25,7 @@
 #include <ModelAPI_Feature.h>
 #include <ModelAPI_ResultBody.h>
 #include <GeomAlgoAPI_MakeShape.h>
+#include <GeomAlgoAPI_MakeShapeList.h>
 
 /// \class FeaturesPlugin_CompositeBoolean
 /// \ingroup Plugins
@@ -72,7 +73,7 @@ protected:
   /// \param[in] theTools list of tools.
   /// \param[out] theObjects list of objects.
   /// \param[out] theMakeShapes list of according algos.
-  /// \return false in failed.
+  /// \return false if failed.
   bool makeBoolean(const ListOfShape& theTools,
                    ListOfShape& theObjects,
                    ListOfMakeShape& theMakeShapes);
@@ -93,6 +94,18 @@ protected:
                           const ListOfShape& theTools,
                           const GeomShapePtr theResultShapesCompound);
 
+private:
+  /// Makes cut operation recursively. Called from makeBoolean().
+  /// \param[in] theCompound the shape to be cut.
+  /// \param[in] theTools list of tools.
+  /// \param[out] theMakeShapeList list of according algos.
+  /// \param[out] theResult result of cut.
+  /// \return false if failed or no cuts done (this is normal case).
+  bool cutRecursiveCompound (const GeomShapePtr theCompound,
+                             const ListOfShape& theTools,
+                             std::shared_ptr<GeomAlgoAPI_MakeShapeList>& theMakeShapeList,
+                             GeomShapePtr& theResult);
+
 protected:
   ModelAPI_Feature* myFeature;
   OperationType myOperationType;