mirror of
https://github.com/csirmaz/openscad-py.git
synced 2025-06-24 11:38:34 +02:00
Convenience method for intersections
This commit is contained in:
parent
ce87745b14
commit
ab13342ab5
1 changed files with 4 additions and 0 deletions
|
@ -202,6 +202,10 @@ class Object:
|
||||||
"""Form the union of self and an object or list of objects"""
|
"""Form the union of self and an object or list of objects"""
|
||||||
return Union(child=Collection.c(objects)._add(self))
|
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:
|
class Header:
|
||||||
"""Render a header (setting global values) of an OpensCAD file"""
|
"""Render a header (setting global values) of an OpensCAD file"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue