27 #ifndef __SMESH_Delaunay_HXX__
28 #define __SMESH_Delaunay_HXX__
32 #include <TopoDS_Face.hxx>
33 #include <BRepMesh_DataStructureOfDelaun.hxx>
50 SMESH_Delaunay(
const std::vector< const UVPtStructVec* > & boundaryNodes,
51 const TopoDS_Face& face,
57 void InitTraversal(
const int nbNodesToVisit = -1);
61 const SMDS_MeshNode* NextNode(
double bc[3],
int triaNodes[3] );
69 const BRepMesh_Triangle* FindTriangle(
const gp_XY& uv,
70 const BRepMesh_Triangle* bmTria,
75 const BRepMesh_Triangle* GetTriangleNear(
int iBndNode );
78 const std::vector< const SMDS_MeshNode* >&
GetBndNodes()
const {
return _bndNodes; }
81 gp_XY GetBndUV(
const int iNode)
const;
85 const gp_XY&
GetScale()
const {
return _scale; }
87 void ToPython()
const;
89 Handle(BRepMesh_DataStructureOfDelaun) GetDS() {
return _triaDS; }
95 typedef std::list< std::pair< const SMDS_MeshNode*, const BRepMesh_Triangle* > >
TNodeTriaList;
102 const BRepMesh_Triangle* bmTria,
110 Handle(BRepMesh_DataStructureOfDelaun) _triaDS;
#define SMESHUtils_EXPORT
Definition: SMESH_Utils.hxx:37
Definition: SMDS_MeshNode.hxx:36
Create a Delaunay triangulation of nodes on a face boundary and provide exploration of nodes shared b...
Definition: SMESH_Delaunay.hxx:46
Handle(BRepMesh_DataStructureOfDelaun) _triaDS
size_t _iBndNode
Definition: SMESH_Delaunay.hxx:111
virtual ~SMESH_Delaunay()
Definition: SMESH_Delaunay.hxx:54
const std::vector< const SMDS_MeshNode * > & GetBndNodes() const
Definition: SMESH_Delaunay.hxx:78
const TopoDS_Face & _face
Definition: SMESH_Delaunay.hxx:106
std::vector< const SMDS_MeshNode * > _bndNodes
Definition: SMESH_Delaunay.hxx:108
std::list< std::pair< const SMDS_MeshNode *, const BRepMesh_Triangle * > > TNodeTriaList
Definition: SMESH_Delaunay.hxx:95
size_t NbVisitedNodes() const
Definition: SMESH_Delaunay.hxx:64
const gp_XY & GetScale() const
Definition: SMESH_Delaunay.hxx:85
Handle(BRepMesh_DataStructureOfDelaun) GetDS()
Definition: SMESH_Delaunay.hxx:89
int _faceID
Definition: SMESH_Delaunay.hxx:107
virtual gp_XY getNodeUV(const TopoDS_Face &face, const SMDS_MeshNode *node) const =0
TNodeTriaList _noTriQueue
Definition: SMESH_Delaunay.hxx:112
gp_XY _scale
Definition: SMESH_Delaunay.hxx:109