I traverse with the help of some TopExp_Explorer instances: TopoDS_Shape, TopAbs_FACE, TopAbs_WIRE, TopAbs_EDGE, TopAbs_VERTEX. Each vertex I transform into a gp_Pnt by BRep_Tool::Pnt(). I need all the points of a TopAbs_FACE for further works. Now is my problem that I only get two vertices per edge, but what I need is: if the edge is not a line (so it has to be a curve) then create support points in a step width of x, which are in line with the edge (I have to represent the curve by a line through some points). Is there anything in OpenCascade what I can use for this task? Has anybody an example? Thanks at the moment.
Here is some code:
// Here I need something like if edge is curve then generate support points. But I don't know how to do this.
// Process each vertex of an edge.
for (vertexExplorer.Init(edge, TopAbs_VERTEX); vertexExplorer.More(); vertexExplorer.Next())
TopoDS_Vertex vertex = TopoDS::Vertex(vertexExplorer.Current());
// Get the 3D point for the vertex.
gp_Pnt p = BRep_Tool::Pnt(vertex);
// If the point does not exist already then create a new one.
if (iter == points.end())
// Point does not exist already.