explorer

Is the order of exploration (Vertex from edge, edge from wire etc.) clockwise or counter-clockwise ? i hope it's clockwise for outer-wire and counter-clockwise for inter-wire.
regards!

Rob Bachrach's picture

As far as I understand, if you are using a TopExp_Explorer, it is neither. The edges are not returned in any connected order. If you are using a BRepTools_WireExplorer, the edges are returned in order, but the direction is undefined. Keep in mind that CW or CCW depends on your point of reference. I don't think you are guaranteed that inner wires will even be opposite to outer wires. Keep in mind that you need to look at the Orientation on the wire explorer to understand how edges align with the order in which the wire is being traversed.