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

Function test_torus

tests/test_free_functions.py:465–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463
464
465def test_torus():
466
467 s = torus(10, 2)
468
469 assert s.isValid()
470 assert s.Volume() == approx(2 * pi ** 2 * 5)
471
472
473def test_cone():

Callers

nothing calls this directly

Calls 3

torusFunction · 0.85
isValidMethod · 0.80
VolumeMethod · 0.80

Tested by

no test coverage detected