Salome HOME
bos #19827. Avoid self-intersecting shape creation.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Tools.h
index 36ad73bdd053cbbdaf17b54bae6ae975ef5c01b0..5b5a6d9222faf4787b72866477e74dbfda96ea14 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -21,6 +21,7 @@
 #define FeaturesPlugin_Tools_H_
 
 #include <GeomAlgoAPI_MakeShape.h>
+#include <GeomAPI_ShapeHierarchy.h>
 #include <ModelAPI_ResultBody.h>
 
 #include <vector>
@@ -62,6 +63,13 @@ public:
                        const bool theShareTopology,
                        ListOfShape& theShapesList,
                        std::string& theError);
+
+  /// Collect shapes from the attribute and fill the hierarchy or a list of parts
+  static bool shapesFromSelectionList(
+      const std::shared_ptr<ModelAPI_AttributeSelectionList> theSelectionList,
+      const bool theStoreFullHierarchy,
+      GeomAPI_ShapeHierarchy& theHierarchy,
+      std::list<ResultPtr>& theParts);
 };
 
 #endif /* FeaturesPlugin_Tools_H_ */