I am trying to copy a TopoDS_Edge, here's the code I am using:
TopoDS_Edge *theEdge = occ_curve->get_TopoDS_Edge();
TopoDS_Shape newShape = theEdge->EmptyCopied();
TopoDS_Edge newEdge = TopoDS::Edge(newShape);
for (Ex.Init(newEdge, TopAbs_VERTEX); Ex.More(); Ex.Next())
It directly jumped over the last line, showing newEdge doesn't have vertices.
How ever, if I replace the newEdge in the "for" loop with "theEdge", it goes into the "populate" code twice.
Has someone see this error? Is there a fix for it pending post? or Should I use a different call or should I have to copy the vertices first seperately?
Thank you for your help in advance!