Updating the CadQuery library.
This commit is contained in:
parent
9201871e37
commit
fd4a90ce3a
|
@ -2409,9 +2409,8 @@ class Workplane(CQ):
|
||||||
`clean` may fail to produce a clean output in some cases such as
|
`clean` may fail to produce a clean output in some cases such as
|
||||||
spherical faces.
|
spherical faces.
|
||||||
"""
|
"""
|
||||||
solidRef = self.findSolid(searchStack=True, searchParents=True)
|
try:
|
||||||
if solidRef:
|
cleanObjects = [obj.clean() for obj in self.objects]
|
||||||
t = solidRef.clean()
|
except AttributeError:
|
||||||
return self.newObject([t])
|
raise AttributeError("%s object doesn't support `clean()` method!" % obj.ShapeType())
|
||||||
else:
|
return self.newObject(cleanObjects)
|
||||||
raise ValueError("There is no solid to clean!")
|
|
||||||
|
|
|
@ -481,6 +481,9 @@ class Wire(Shape):
|
||||||
"""
|
"""
|
||||||
return Wire(FreeCADPart.makeHelix(pitch, height, radius, angle))
|
return Wire(FreeCADPart.makeHelix(pitch, height, radius, angle))
|
||||||
|
|
||||||
|
def clean(self):
|
||||||
|
"""This method is not implemented yet."""
|
||||||
|
return self
|
||||||
|
|
||||||
class Face(Shape):
|
class Face(Shape):
|
||||||
def __init__(self, obj):
|
def __init__(self, obj):
|
||||||
|
@ -882,3 +885,7 @@ class Compound(Shape):
|
||||||
|
|
||||||
def tessellate(self, tolerance):
|
def tessellate(self, tolerance):
|
||||||
return self.wrapped.tessellate(tolerance)
|
return self.wrapped.tessellate(tolerance)
|
||||||
|
|
||||||
|
def clean(self):
|
||||||
|
"""This method is not implemented yet."""
|
||||||
|
return self
|
||||||
|
|
Loading…
Reference in New Issue
Block a user