]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_VersionedBoolean.h
Salome HOME
Task 3.2. Concealment into multi-level Compounds
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_VersionedBoolean.h
index 81e662649dec8d79995c9ad761fbf94d55a799ba..97266c7764f1e728c0b83e86adde0f2c7b4a0a25 100644 (file)
@@ -53,8 +53,10 @@ protected:
   /// The version is initialized for newly created features,
   /// not read from previously stored document.
   void initVersion(const int theVersion,
-                   const std::shared_ptr<ModelAPI_Attribute> theObjectsAttr,
-                   const std::shared_ptr<ModelAPI_Attribute> theToolsAttr);
+                   const std::shared_ptr<ModelAPI_Attribute> theObjectsAttr
+                            = std::shared_ptr<ModelAPI_Attribute>(),
+                   const std::shared_ptr<ModelAPI_Attribute> theToolsAttr
+                            = std::shared_ptr<ModelAPI_Attribute>());
 
   /// Auxiliary class to store hierarchy of Boolean operation objects/tools
   /// and their parent shapes (compounds or compsolids)
@@ -179,6 +181,11 @@ protected:
                        ListOfShape& theResultShapesList,
                        GeomShapePtr theResulCompound = GeomShapePtr());
 
+  /// Resize planes to fit them to the bounding box of the given lins of objects.
+  static void resizePlanes(const ListOfShape& theObjects,
+                           ListOfShape& thePlanes,
+                           std::shared_ptr<GeomAlgoAPI_MakeShapeList>& theMakeShapeList);
+
   /// Process unused sub-shapes of compounds.
   /// Keep the compound hierarchy, but merge top-level compounds
   /// into a single compound and add the result of the FUSE operation.