cast to actual shape type after calling removeSplitter()

This commit is contained in:
hyOzd 2015-08-06 22:33:38 +03:00
parent 299ecf5cf5
commit 605eabf243

View File

@ -811,7 +811,11 @@ class Solid(Shape):
return Shape.cast(self.wrapped.fuse(solidToJoin.wrapped))
def clean(self):
return Shape.cast(self.wrapped.removeSplitter())
"""Clean faces by removing splitter edges."""
r = self.wrapped.removeSplitter()
# removeSplitter() returns a generic Shape type, cast to actual type of object
r = FreeCADPart.cast_to_shape(r)
return Shape.cast(r)
def fillet(self, radius, edgeList):
"""