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

Method testSphereCombine

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

Source from the content-addressed store, hash-verified

2576 self.assertEqual(4, s.faces().size())
2577
2578 def testSphereCombine(self):
2579 s = (
2580 Workplane("XY")
2581 .rect(4.0, 4.0, forConstruction=True)
2582 .vertices()
2583 .sphere(2.25, combine=True)
2584 )
2585 # self.saveModel(s) # Until FreeCAD fixes their sphere operation
2586 self.assertEqual(1, s.solids().size())
2587 self.assertEqual(4, s.faces().size())
2588
2589 def testCylinderDefaults(self):
2590 s = Workplane("XY").cylinder(20, 10)

Callers

nothing calls this directly

Calls 7

WorkplaneClass · 0.85
sphereMethod · 0.80
verticesMethod · 0.45
rectMethod · 0.45
sizeMethod · 0.45
solidsMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected