MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testUnionNoArgs

Method testUnionNoArgs

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

Source from the content-addressed store, hash-verified

2853 self.assertEqual(11, objects2.faces().size())
2854
2855 def testUnionNoArgs(self):
2856 # combine using union with no arguments
2857 s = Workplane(Plane.XY())
2858
2859 objects1 = s.rect(2.0, 2.0).extrude(0.5)
2860 objects2 = s.rect(1.0, 1.0).extrude(0.5).translate((0, 0, 0.5))
2861 objects2 = objects1.add(objects2).union(glue=True, tol=None)
2862 self.assertEqual(11, objects2.faces().size())
2863
2864 def testCombineSolidsInLoop(self):
2865 # duplicates a memory problem of some kind reported when combining lots of objects

Callers

nothing calls this directly

Calls 9

rectMethod · 0.95
WorkplaneClass · 0.85
XYMethod · 0.80
extrudeMethod · 0.80
unionMethod · 0.80
translateMethod · 0.45
addMethod · 0.45
sizeMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected