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

Method testMultiWireWorkplane

tests/test_cadquery.py:1641–1650  ·  view source on GitHub ↗

A simple square part with a hole in it-- but this time done as a single extrusion with two wires, as opposed to s cut

(self)

Source from the content-addressed store, hash-verified

1639 self.saveModel(s)
1640
1641 def testMultiWireWorkplane(self):
1642 """
1643 A simple square part with a hole in it-- but this time done as a single extrusion
1644 with two wires, as opposed to s cut
1645 """
1646 s = Workplane(Plane.XY())
1647 r = s.rect(2.0, 2.0).circle(0.25).extrude(0.5)
1648
1649 self.saveModel(r)
1650 self.assertEqual(7, r.faces().size())
1651
1652 def testConstructionWire(self):
1653 """

Callers

nothing calls this directly

Calls 8

rectMethod · 0.95
saveModelMethod · 0.95
WorkplaneClass · 0.85
XYMethod · 0.80
extrudeMethod · 0.80
circleMethod · 0.45
sizeMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected