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

Function test_cone

tests/test_free_functions.py:473–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

471
472
473def test_cone():
474
475 s = cone(2, 1)
476
477 assert s.isValid()
478 assert s.Volume() == approx(1 / 3 * pi)
479
480 s = cone(2, 1, 1)
481
482 assert s.isValid()
483 assert s.Volume() == approx(1 / 3 * pi * (1 + 0.25 + 0.5))
484
485
486def test_spline():

Callers

nothing calls this directly

Calls 3

coneFunction · 0.85
isValidMethod · 0.80
VolumeMethod · 0.80

Tested by

no test coverage detected