]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.h
Salome HOME
Issue #1369: Added "SubShapes" feature.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_ShapeTools.h
index 07d6704ab861d8cc4d0dfc2de5ec64d040d05677..3fdee67c5d9380bee37f4938ab7f2e6a6099f326 100644 (file)
@@ -78,6 +78,13 @@ public:
   /// \param[in] theShapes shapes to find plane.
   /// \return plane where all shapes lie or empty ptr if they not planar.
   static std::shared_ptr<GeomAPI_Pln> findPlane(const ListOfShape& theShapes);
+
+  /// \brief Checks that vertex/edge is inside face or vertext inside wire.
+  /// \param[in] theSubShape shape that should be inside.
+  /// \param[in] theBaseShape base shape.
+  /// \return true if edge inside the face.
+  static bool isSubShapeInShape(const std::shared_ptr<GeomAPI_Shape> theSubShape,
+                                const std::shared_ptr<GeomAPI_Shape> theBaseShape);
 };
 
 #endif