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

Function wireOn

cadquery/occ_impl/shapes.py:5953–5960  ·  view source on GitHub ↗

Map a wire onto a base face in the u,v space.

(base: Shape, w: Shape, tol: float = 1e-6, N: int = 20)

Source from the content-addressed store, hash-verified

5951
5952
5953def wireOn(base: Shape, w: Shape, tol: float = 1e-6, N: int = 20) -> Wire:
5954 """
5955 Map a wire onto a base face in the u,v space.
5956 """
5957
5958 rvs = [edgeOn(base, e, tol=tol, N=N) for e in w.Edges()]
5959
5960 return wire(rvs)
5961
5962
5963@multidispatch

Callers 2

test_trimmingFunction · 0.90
faceOnFunction · 0.85

Calls 3

edgeOnFunction · 0.85
wireFunction · 0.85
EdgesMethod · 0.80

Tested by 1

test_trimmingFunction · 0.72