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

Function test_mixed_close

tests/test_sketch.py:986–1002  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

984
985
986def test_mixed_close():
987
988 # check that closing of mixed mode edges works correctly
989 s = (
990 Sketch()
991 .arc((0, 0), 30, 0, 120, tag="e0", forConstruction=True)
992 .edges(tag="e0")
993 .distribute(1, rotate=False)
994 .segment((0, 0), (10, 2))
995 .segment((10, -2))
996 .close()
997 .assemble()
998 .reset() # reset the implicit selection coming from distribute
999 )
1000
1001 # the underlying face should be valid
1002 assert s.val().isValid()

Callers

nothing calls this directly

Calls 10

SketchClass · 0.90
resetMethod · 0.80
assembleMethod · 0.80
segmentMethod · 0.80
distributeMethod · 0.80
arcMethod · 0.80
isValidMethod · 0.80
closeMethod · 0.45
edgesMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected