*/
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()
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
// to create quadratic elements
bool myCreateQuadratic;
bool mySetElemOnShape;
- bool myCheckNodePos;
+ std::set< int > myOkNodePosShapes;
};