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

Function test_cap

tests/test_free_functions.py:932–941  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

930
931
932def test_cap():
933
934 s = extrude(circle(1), (0, 0, 1))
935
936 f1 = cap(s.edges(">Z"), s, [(0, 0, 1.5)])
937 f2 = cap(s.edges(">Z"), s, [circle(0.5).moved(Location(0, 0, 2))])
938
939 assert_all_valid(f1, f2)
940 assert f1.Area() > pi
941 assert f2.Area() > pi
942
943
944def test_fillet():

Callers

nothing calls this directly

Calls 8

extrudeFunction · 0.85
circleFunction · 0.85
capFunction · 0.85
LocationClass · 0.85
assert_all_validFunction · 0.85
edgesMethod · 0.45
movedMethod · 0.45
AreaMethod · 0.45

Tested by

no test coverage detected