X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_MesherHelper.hxx;h=80bd0affa1b09cbb6abdcbd59e3904ff36e8baf8;hb=9a71e5bbe8a2b8d906276063a9a57e7b0727013c;hp=65c3f600d9f8e9bd29162044f3c651703b5764db;hpb=8735b17bdc73f6d2855744eea268eb82e431a13d;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_MesherHelper.hxx b/src/SMESH/SMESH_MesherHelper.hxx index 65c3f600d..80bd0affa 100644 --- a/src/SMESH/SMESH_MesherHelper.hxx +++ b/src/SMESH/SMESH_MesherHelper.hxx @@ -151,15 +151,6 @@ public: */ void SetElementsOnShape(bool toSet) { mySetElemOnShape = toSet; } - /*! - * \brief Enable/disable checking of node parameters on shapes while adding elements. - * In case of incorrect parameters mudium node place is computed as the middle - * of two nodes. Default is false. - * NOTE that this flag is reset to "not to check" if check with non-default partameter - * is successful - */ - void SetCheckNodePosition(bool toCheck) { myCheckNodePos = toCheck; } - /*! * \brief Set shape to make elements on without calling IsQuadraticSubMesh() */ @@ -193,7 +184,7 @@ public: const SMDS_MeshNode* n2, const SMDS_MeshNode* n3, const int id=0, - const bool force3d = false); + const bool force3d = false); /*! * Creates quadratic or linear quadrangle */ @@ -202,7 +193,7 @@ public: const SMDS_MeshNode* n3, const SMDS_MeshNode* n4, const int id = 0, - const bool force3d = false); + const bool force3d = false); /*! * Creates quadratic or linear tetraahedron */ @@ -211,7 +202,7 @@ public: const SMDS_MeshNode* n3, const SMDS_MeshNode* n4, const int id = 0, - const bool force3d = true); + const bool force3d = true); /*! * Creates quadratic or linear pyramid */ @@ -221,7 +212,7 @@ public: const SMDS_MeshNode* n4, const SMDS_MeshNode* n5, const int id = 0, - const bool force3d = true); + const bool force3d = true); /*! * Creates quadratic or linear pentahedron */ @@ -232,7 +223,7 @@ public: const SMDS_MeshNode* n5, const SMDS_MeshNode* n6, const int id = 0, - const bool force3d = true); + const bool force3d = true); /*! * Creates quadratic or linear hexahedron */ @@ -245,7 +236,7 @@ public: const SMDS_MeshNode* n7, const SMDS_MeshNode* n8, const int id = 0, - bool force3d = true); + bool force3d = true); /*! * \brief Return U of the given node on the edge */ @@ -260,6 +251,14 @@ public: const SMDS_MeshNode* n, const SMDS_MeshNode* inFaceNode=0, bool* check=0) const; + /*! + * \brief Check and fix node UV on a face + * \retval bool - false if UV is bad and could not be fixed + */ + bool CheckNodeUV(const TopoDS_Face& F, + const SMDS_MeshNode* n, + gp_XY& uv, + const double tol) const; /*! * \brief Return middle UV taking in account surface period */ @@ -393,7 +392,7 @@ protected: // to create quadratic elements bool myCreateQuadratic; bool mySetElemOnShape; - bool myCheckNodePos; + std::set< int > myOkNodePosShapes; };