X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Algo.hxx;h=12c72d828f284a56bb442fa84c4cf1128e63b3c9;hb=d81b4f8f210550596c8d4588ea2ca11c7f969440;hp=029dc67117bb1df9746dd9e31b079f9ab10db8ae;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Algo.hxx b/src/SMESH/SMESH_Algo.hxx index 029dc6711..12c72d828 100644 --- a/src/SMESH/SMESH_Algo.hxx +++ b/src/SMESH/SMESH_Algo.hxx @@ -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