MCPcopy Index your code
hub / github.com/CadQuery/cadquery / test_chamfer

Function test_chamfer

tests/test_free_functions.py:955–963  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

953
954
955def test_chamfer():
956
957 b = box(1, 1, 1)
958
959 r = chamfer(b, b.edges(">Z"), 0.1)
960
961 assert r.isValid()
962 assert len(r.Edges()) == 20
963 assert r.faces(">Z").Area() < 1
964
965
966def test_extrude():

Callers

nothing calls this directly

Calls 7

boxFunction · 0.85
chamferFunction · 0.85
isValidMethod · 0.80
EdgesMethod · 0.80
edgesMethod · 0.45
AreaMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected