Sun, 04/09/2017 - 10:56
Forums:
Hi,
Consider the following piece of code.
TopExp_Explorer aEdgeExp (aFace, TopAbs_EDGE);
for(; aEdgeExp.More(); aEdgeExp.Next())
{
const TopoDS_Edge& aEdge = TopoDS::Edge(aEdgeExp.Current());
}
My question is, using TopExplorer, what edges we get are sequentially connected to each other or it returns list of random edges?
Thanks
Mon, 04/10/2017 - 08:39
TopExp_Explorer iterates through sub-shapes exactly in the order as they have been put into shape during construction.
Edges may be put in connected order or not - this is not required by valid topology.
ShapeExtend_WireData can be used for exploring Wires as ordered list of Edges.
Mon, 04/10/2017 - 09:07
Hi,
ShapeExtend_WireData will exist all the time? Or it depends on how the shape is constructed? How do I get ShapeExtend_WireData from a face?
Thanks
Mon, 05/22/2017 - 15:54
Hi Rakesh,
To explore edges of a wire in sequence use: BRepTools_WireExplorer
https://www.opencascade.com/doc/occt-7.0.0/refman/html/class_b_rep_tools...
To see opencasde code examples see: OCCExplorer
Best regards,
Guido