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.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 OpenSCAD source code from the AST.