Test fixes

This commit is contained in:
adam-urbanczyk
2020-06-17 21:04:54 +02:00
parent d14c09b96d
commit 191d78d558
2 changed files with 18 additions and 22 deletions

View File

@ -210,12 +210,11 @@ class TestCadObjects(BaseTest):
"""
def cylinders(self, radius, height):
def _cyl(pnt):
# Inner function to build a cylinder
return Solid.makeCylinder(radius, height, pnt)
c = Solid.makeCylinder(radius, height, Vector())
# Combine all the cylinders into a single compound
r = self.eachpoint(_cyl, True).combineSolids()
r = self.eachpoint(lambda loc: c.located(loc), True).combineSolids()
return r