added simplify API that calls freecad's removeSplitter() function to
clean faces from unwanted edges
This commit is contained in:
parent
14262e744d
commit
ea26397b83
|
@ -2355,3 +2355,11 @@ class Workplane(CQ):
|
||||||
return spheres
|
return spheres
|
||||||
else:
|
else:
|
||||||
return self.union(spheres)
|
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!")
|
||||||
|
|
|
@ -802,6 +802,9 @@ class Solid(Shape):
|
||||||
def fuse(self, solidToJoin):
|
def fuse(self, solidToJoin):
|
||||||
return Shape.cast(self.wrapped.fuse(solidToJoin.wrapped))
|
return Shape.cast(self.wrapped.fuse(solidToJoin.wrapped))
|
||||||
|
|
||||||
|
def simplify(self):
|
||||||
|
return Shape.cast(self.wrapped.removeSplitter())
|
||||||
|
|
||||||
def fillet(self, radius, edgeList):
|
def fillet(self, radius, edgeList):
|
||||||
"""
|
"""
|
||||||
Fillets the specified edges of this solid.
|
Fillets the specified edges of this solid.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user