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

Function rotated_circles

tests/test_nurbs.py:64–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63@fixture
64def rotated_circles() -> list[Curve]:
65
66 pts1 = np.array([v.toTuple() for v in circle(1).sample(100)[0]])
67 pts2 = np.array([v.toTuple() for v in circle(1).moved(z=1, rz=90).sample(100)[0]])
68
69 c1 = periodicApproximate(pts1)
70 c2 = periodicApproximate(pts2)
71
72 return [c1, c2]
73
74
75def test_periodic_dm():

Callers

nothing calls this directly

Calls 5

periodicApproximateFunction · 0.90
circleFunction · 0.85
sampleMethod · 0.80
toTupleMethod · 0.45
movedMethod · 0.45

Tested by

no test coverage detected