Salome HOME
Fix the python dump of whole-results groups for specific test-case.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_ShapeTools.h
index 4127ccf2cd7261b6acd0e892faac8f362ef7e0a1..da415d359c49cbfbe56e0b1e082e0016dceae297 100644 (file)
@@ -80,6 +80,13 @@ public:
   GEOMALGOAPI_EXPORT static std::shared_ptr<GeomAPI_Shape>
     groupSharedTopology(const std::shared_ptr<GeomAPI_Shape> theCompound);
 
+  /// \brief Check group of shapes has shared sub-shapes of the given type
+  /// \param[in] theShapes    list of shapes
+  /// \param[in] theShapeType type of sub-shapes to check
+  /// \return \c true if shared topology exists
+  GEOMALGOAPI_EXPORT static bool hasSharedTopology(const ListOfShape& theShapes,
+                                                   const GeomAPI_Shape::ShapeType theShapeType);
+
   /// \brief Calculates bounding box for theShapes
   /// \return list of eight points.
   /// \param[in] theShapes list of shapes.