OpenSCAD v0.5.2 OpenSCAD.Renderable protocol View Source
We'll try and render anything, because it could be a deeply nested structure of things to render, so we'll keep going until we hit something we can't handle.
Link to this section Summary
Functions
Returns a string of what is hopefully valid OpenSCAD, but it's possible the programmer is asking for something invalid, like a circle with an 'eleventeen' radius. It'll try and pass that along to OpenSCAD, and it would fail just as OpenSCAD should.
Returns the type of the renderable, the important ones being :object and :transformation, which will be used to generate different functionallity via the OpenSCAD.Action.before_compile macro
Link to this section Types
options()
View Sourceoptions() :: {:indent, nil | non_neg_integer()} | {:raise, boolean()}
Rendering Options:
indent: nil | integer()
- number of spaces to prefix this renderable with
- nil skips indenting all together
raise: boolean()
- true (default) - raises if any child is unrenderable
- false - skips the child entirely, renders what it can
types()
View Sourcetypes() :: :string | :list | :object | :transformation | :nope
The types of renderables
Link to this section Functions
Returns a string of what is hopefully valid OpenSCAD, but it's possible the programmer is asking for something invalid, like a circle with an 'eleventeen' radius. It'll try and pass that along to OpenSCAD, and it would fail just as OpenSCAD should.
Will raise if something isn't renderable within the structure.
Returns the type of the renderable, the important ones being :object and :transformation, which will be used to generate different functionallity via the OpenSCAD.Action.before_compile macro