MCPcopy
hub / github.com/CadQuery/cadquery / edgesToWires

Function edgesToWires

cadquery/occ_impl/shapes.py:5046–5059  ·  view source on GitHub ↗

Convert edges to a list of wires.

(edges: Iterable[Edge], tol: float = 1e-6)

Source from the content-addressed store, hash-verified

5044
5045
5046def edgesToWires(edges: Iterable[Edge], tol: float = 1e-6) -> list[Wire]:
5047 """
5048 Convert edges to a list of wires.
5049 """
5050
5051 edges_in = TopTools_HSequenceOfShape()
5052 wires_out = TopTools_HSequenceOfShape()
5053
5054 for e in edges:
5055 edges_in.Append(e.wrapped)
5056
5057 ShapeAnalysis_FreeBounds.ConnectEdgesToWires_s(edges_in, tol, False, wires_out)
5058
5059 return [Wire(el) for el in wires_out]
5060
5061
5062# %% utilities

Callers 1

faceMethod · 0.85

Calls 1

WireClass · 0.85

Tested by

no test coverage detected