added simplify API that calls freecad's removeSplitter() function to

clean faces from unwanted edges
This commit is contained in:
hyOzd 2015-07-19 10:08:20 +03:00
parent 14262e744d
commit ea26397b83
2 changed files with 11 additions and 0 deletions

View File

@ -2355,3 +2355,11 @@ class Workplane(CQ):
return spheres
else:
return self.union(spheres)
def simplify(self):
solidRef = self.findSolid(searchStack=True, searchParents=True)
if solidRef:
t = solidRef.simplify()
return self.newObject([t])
else:
raise ValueError("There is no solid to simplify!")

View File

@ -802,6 +802,9 @@ class Solid(Shape):
def fuse(self, solidToJoin):
return Shape.cast(self.wrapped.fuse(solidToJoin.wrapped))
def simplify(self):
return Shape.cast(self.wrapped.removeSplitter())
def fillet(self, radius, edgeList):
"""
Fillets the specified edges of this solid.