Backends

OpenSCAD Backend

This backend allows generating of OpenSCAD code. To convert the code into an STL file, you can either copy-and-paste the code into the GUI tool, or you can render it directly using the openscad command line tool:

python exampleModel.py > exampleModel.scad
openscad -o exampleModel.stl --render exampleModel.scad
class tangible.backends.openscad.OpenScadBackend(ast)[source]

Render AST to OpenSCAD source code.

Parameters:ast (Any tangible.ast.AST subclass) – The AST that should be rendered.
generate()[source]

Generate OpenSCAD source code from the AST.