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

Function test_face_positions

tests/test_shapes.py:113–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111
112
113def test_face_positions():
114
115 f = plane(1, 1)
116
117 ps = f.positions([(0, 0), (0.5, 0.5)])
118
119 p1, p2 = ps
120
121 assert p1.x == approx(0)
122 assert p1.y == approx(0)
123 assert p1.z == approx(0)
124
125 assert p2.x == approx(0.5)
126 assert p2.y == approx(0.5)
127 assert p2.z == approx(0)
128
129
130def test_edge_params():

Callers

nothing calls this directly

Calls 2

planeFunction · 0.90
positionsMethod · 0.45

Tested by

no test coverage detected