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

Method testAngledHoles

tests/test_cadquery.py:1535–1547  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1533 self.saveModel(s)
1534
1535 def testAngledHoles(self):
1536 s = (
1537 Workplane("front")
1538 .box(4.0, 4.0, 0.25)
1539 .faces(">Z")
1540 .workplane()
1541 .transformed(offset=Vector(0, -1.5, 1.0), rotate=Vector(60, 0, 0))
1542 .rect(1.5, 1.5, forConstruction=True)
1543 .vertices()
1544 .hole(0.25)
1545 )
1546 self.saveModel(s)
1547 self.assertEqual(10, s.faces().size())
1548
1549 def testTranslateSolid(self):
1550 c = CQ(makeUnitCube())

Callers

nothing calls this directly

Calls 11

saveModelMethod · 0.95
WorkplaneClass · 0.85
VectorClass · 0.85
holeMethod · 0.80
transformedMethod · 0.80
workplaneMethod · 0.80
boxMethod · 0.80
verticesMethod · 0.45
rectMethod · 0.45
facesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected