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

Function test_isolines

tests/test_shapes.py:281–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279
280
281def test_isolines():
282
283 c = cylinder(1, 2).faces("%CYLINDER")
284
285 isos_v = c.isolines([0, 1])
286 isos_u = c.isolines([0, 1], "u")
287
288 assert len(isos_u) == 2
289 assert len(isos_v) == 2
290
291 assert isos_u[0].Length() == approx(2)
292 assert isos_v[0].Length() == approx(pi)
293
294
295def test_extend():

Callers

nothing calls this directly

Calls 4

cylinderFunction · 0.90
isolinesMethod · 0.80
facesMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected