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

Function test_face_params

tests/test_shapes.py:86–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85
86def test_face_params():
87
88 f = plane(1, 1)
89
90 us, vs = f.params([(0.49, 0.0), (0.5, 0)])
91
92 u1, u2 = us
93 v1, v2 = vs
94
95 assert u1 == approx(0.49)
96 assert v1 == approx(0.0)
97
98 assert u2 == approx(0.5)
99 assert v2 == approx(0.0)
100
101
102def test_face_positionAt():

Callers

nothing calls this directly

Calls 2

planeFunction · 0.90
paramsMethod · 0.45

Tested by

no test coverage detected