Exploring a Wire

To explore the edges of a wire in a contiguous order, use the BrepTools_WireExplorer class.

For example:

TopoDS_Wire myWire =&ldots;.

BRepTools_WireExplorer Ex;

for (Ex.Init(myWire); Ex.More(); Ex.Next()) {

TopoDS_Edge currentedge = Ex.Current();

// Process current edge

}

For more information, refer to the entry for this class in reference documentation.