| 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 |