mirror of
https://github.com/csirmaz/openscad-py.git
synced 2025-06-21 10:25:41 +02:00
Convenience method for intersections
This commit is contained in:
parent
ce87745b14
commit
ab13342ab5
1 changed files with 4 additions and 0 deletions
|
@ -201,6 +201,10 @@ class Object:
|
|||
def union(self, objects: TUnion[list, 'Object']) -> 'Object':
|
||||
"""Form the union of self and an object or list of objects"""
|
||||
return Union(child=Collection.c(objects)._add(self))
|
||||
|
||||
def intersection(self, objects: TUnion[list, 'Object']) -> 'Object':
|
||||
"""Get the intersection of self and an object of list of objects"""
|
||||
return Intersection(child=Collection.c(objects)._add(self))
|
||||
|
||||
|
||||
class Header:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue