Salome HOME
Issue #904 - Fatal error aftre delete sketch from dataset used in extrusion in part
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_ShapeTools.h
index 9dce03c2da94675adf0ff580bd6a0c8ca7847802..fa792b2d66f0d79b3ab80e21c42b153e05f51ed2 100644 (file)
@@ -27,14 +27,21 @@ public:
   /// are expressed in the absolute Cartesian coordinate system. (This function works only for surfaces).
   static std::shared_ptr<GeomAPI_Pnt> centreOfMass(std::shared_ptr<GeomAPI_Shape> theShape);
 
-  /** \brief Combines faces with common edges to shells
-   *  \param[in] theFacesList list of faces to be combined.
+  /** \brief Combines faces with common edges to shells, or solids to compsolids.
+   *  \param[in] theCompound compound of shapes.
+   *  \param[in] theType type of combine.
    *  \param[out] theShells resulting shells.
    *  \param[out] theFreeFaces faces that does not have common edges.
    */
-  static void combineFacesToShells(const ListOfShape& theFacesList,
-                                   ListOfShape& theShells,
-                                   ListOfShape& theFreeFaces);
+  static void combineShapes(const std::shared_ptr<GeomAPI_Shape> theCompound,
+                            const GeomAPI_Shape::ShapeType theType,
+                            ListOfShape& theCombinedShapes,
+                            ListOfShape& theFreeShapes);
+
+  /**
+   * Returns infinite plane received from theFace plane
+   */
+  static std::shared_ptr<GeomAPI_Shape> faceToInfinitePlane(const std::shared_ptr<GeomAPI_Shape>& theFace);
 };
 
 #endif