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

Function test_located

tests/test_sketch.py:546–556  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

544
545
546def test_located():
547
548 s1 = Sketch().segment((0, 0), (1, 0)).segment((1, 1)).close().assemble()
549
550 assert len(s1._edges) == 3
551 assert len(s1._faces.Faces()) == 1
552
553 s2 = s1.located(loc=Location())
554
555 assert len(s2._edges) == 0
556 assert len(s2._faces.Faces()) == 1
557
558
559def test_constraint_validation():

Callers

nothing calls this directly

Calls 7

SketchClass · 0.90
LocationClass · 0.85
assembleMethod · 0.80
segmentMethod · 0.80
closeMethod · 0.45
FacesMethod · 0.45
locatedMethod · 0.45

Tested by

no test coverage detected