Skip to content

Commit

Permalink
Updated _wire_edges
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Jan 14, 2025
1 parent 60a4d24 commit 2d63dc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/build123d/exporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,15 +1110,17 @@ def _add_single_shape(self, shape: Shape, layer: _Layer, reverse_wires: bool):

@staticmethod
def _wire_edges(wire: Wire, reverse: bool) -> list[Edge]:
# Note that BRepTools_WireExplorer can return edges in a different order
# than the standard edges() method.
edges = []
explorer = BRepTools_WireExplorer(wire.wrapped)
while explorer.More():
topo_edge = explorer.Current()
edges.append(Edge(topo_edge))
explorer.Next()
# edges = wire.edges()
# if reverse:
# edges.reverse()
if reverse:
edges.reverse()
return edges

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit 2d63dc7

Please sign in to comment.