
Fri, 11/21/2008 - 00:15
Good afternoon,
I'd like to tesselate a TopoDS_Edge with no associated TopoDS_Face, I tried to use BRepMesh_FastDiscret, as following:
BRepMesh_FastDiscret *myMesh =
new BRepMesh_FastDiscret(deflection, *Topo_Edge, aBox, angle, Standard_True, Standard_True);
if (myMesh == NULL)
{
PRINT_ERROR("Can't get tesselatation for this curve.\n");
return CUBIT_FAILURE;
}
I did get a non-Null pointer for myMesh, but when I print it out, it doesn't have vertices and edges:
vertices = {
so query of num_points = myMesh->NbVertices(); crashes.
How do I get a correct tesselation of an Edge?
Thanks!
Jane
Fri, 11/21/2008 - 01:19
you can use one of the GCPnts_* classes (TangentialDeflection may be the best) with a BRepAdaptor_Curve created from your edge
Stephane
Mon, 11/24/2008 - 19:19
Thanks, Stephane. I'll try it out and let you know.
Jane