Thu, 11/20/2008 - 10:05
Forums:
I use BRepMesh_FastDiscret to mesh a Shape:
BRepMesh_FastDiscret *myMesh = new BRepMesh_FastDiscret(...)
To retrieve triangles, I do this:
int NbTri = myMesh->NbTriangles();
BRepMesh_Triangle& triangle;
for (iTri=1; iTri
triangle = myMesh->Triangle(iTri);
}
But, here I cannot retrieve the edge indices for the triangle (Edge1, Edge2, Edge3 are private data).
Does anyone know how to access these private fields ?
Thanxs.
J-Yves
Thu, 11/20/2008 - 15:11
Have you looked at the public member function Edges of BRepMesh_Triangle? This appears to return the edge indices and their orientations for the triangle.
Thu, 11/27/2008 - 17:02
Thank you Bob,
It is exactly what I needed.
Fri, 02/13/2009 - 22:41
Hi, Jean. Why BRepMesh_FastDiscret has no the function: "NbTriangles()" in my OCC. What kind of OCC are you using ????