Salome HOME
fix bug PAL10974: add IsReversedSubMesh()
[modules/smesh.git] / src / SMESH / SMESH_Algo.hxx
index 029dc67117bb1df9746dd9e31b079f9ab10db8ae..12c72d828f284a56bb442fa84c4cf1128e63b3c9 100644 (file)
@@ -40,6 +40,8 @@
 
 class SMESH_Gen;
 class SMESH_Mesh;
+class TopoDS_Face;
+class SMESHDS_Mesh;
 
 class SMESH_Algo:public SMESH_Hypothesis
 {
@@ -62,6 +64,16 @@ class SMESH_Algo:public SMESH_Hypothesis
 
        static double EdgeLength(const TopoDS_Edge & E);
 
+  /*!
+   * \brief Find out elements orientation on a geometrical face
+   * \param theFace - The face correctly oriented in the shape being meshed
+   * \param theMeshDS - The mesh data structure
+   * \retval bool - true if the face normal and the normal of first element
+   *                in the correspoding submesh point in different directions
+   */
+  static bool IsReversedSubMesh (const TopoDS_Face&  theFace,
+                                 SMESHDS_Mesh*       theMeshDS);
+
  public:
         // algo features