]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Tools.h
Salome HOME
Preparations for Split operation. It includes:
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
index 00f6cd4fd570611ac0d997cd911bbdf913e5a273..14f0288237bfd319ef1a1a36bdac5b41d7e83843 100755 (executable)
@@ -26,6 +26,14 @@ namespace ModelAPI_Tools {
 /// Returns shape from the given Result object
 MODELAPI_EXPORT std::shared_ptr<GeomAPI_Shape> shape(const ResultPtr& theResult);
 
+/// Creates a container of shape of the feature results satisfied the given shape type
+/// \param theFeature a source feature
+/// \param theType shape type
+/// \param an output container for shapes
+MODELAPI_EXPORT void shapesOfType(const FeaturePtr& theFeature,
+                                  const GeomAPI_Shape::ShapeType& theType,
+                                  std::set<GeomShapePtr>& theShapes);
+
 /*! Returns the feature error generated according to feature error and exec state
  * \param theFeature a feature
  * \return error value or empty string