Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions solid/solidpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,50 @@ def __init__(self):
OpenSCADObject.__init__(self, 'hull', {})


class inset(OpenSCADObject):
'''
Creates a polygon at an offset `d` inside a 2D shape.

:param d: offset
:type d: number
'''
def __init__(self, d=None):
OpenSCADObject.__init__(self, 'inset', {'d': d})


class outset(OpenSCADObject):
'''
Creates a polygon at an offset `d` outside a 2D shape.

:param d: offset
:type d: number
'''
def __init__(self, d=None):
OpenSCADObject.__init__(self, 'outset', {'d': d})


class fillet(OpenSCADObject):
'''
Adds fillets of radius `r` to all concave corners of a 2D shape.

:param r: radius
:type r: number
'''
def __init__(self, r=None):
OpenSCADObject.__init__(self, 'fillet', {'r': r})


class rounding(OpenSCADObject):
'''
Adds rounding of radius `r` to all convex corners of a 2D shape.

:param r: radius
:type r: number
'''
def __init__(self, r=None):
OpenSCADObject.__init__(self, 'rounding', {'r': r})


class render(OpenSCADObject):
'''
Always calculate the CSG model for this tree (even in OpenCSG preview
Expand Down