OpenSCAD v0.5.2 OpenSCAD View Source

'use OpenSCAD' in your module to have access to the entire OpenSCAD language

See the OpenSCAD Documentation for more details of actual usage.

This CheatSheet also comes in handy

Link to this section Summary

Link to this section Functions

Link to this function

color(children, kwlist \\ [])

View Source
Link to this function

difference(thing, things_to_remove)

View Source
Link to this function

hull(children, kwlist \\ [])

View Source
Link to this function

intersection(children, kwlist \\ [])

View Source
Link to this function

linear_extrude(children, kwlist \\ [])

View Source
Link to this function

minkowski(children, kwlist \\ [])

View Source
Link to this function

mirror(children, kwlist \\ [])

View Source
Link to this function

offset(children, kwlist \\ [])

View Source
Link to this function

polyhedron(kwlist \\ [])

View Source
Link to this function

projection(children, kwlist \\ [])

View Source
Link to this function

resize(children, kwlist \\ [])

View Source
Link to this function

rotate(children, kwlist \\ [])

View Source
Link to this function

rotate_extrude(children, kwlist \\ [])

View Source
Link to this function

scale(children, kwlist \\ [])

View Source
Link to this function

slice(renderable, kwargs)

View Source
slice(any(), Keyword.t()) :: :ok

slice is something unavailable in openscad.

It's intention is to take a 3D model and output a set of SVGs that will be individual layers that can be cut with a laser or CNC machine.

You can play around with these settings to distort the model, but if you want it to be accurate, set layer to the thickness of your material.

Also, it shift the model z -layer mm for each step, and will create the svg from all points at z=0 for that step. This means that it starts at z=0, and anything below z=0 will not be accounted for at all. Also, it will only go as high as height, so if you create a cube(v: [100, 100, 100], center:true), half of it will be below the z axis and never get rendered. It will have 50mm above the z-axis, but if you set height to 25, you'll lose the topp half of that. Conversley, if you set height to 100, you'll end up with half your SVGs being empty.

  • height: total height in mm
  • layer: height per layer
  • name: file_prefix
Link to this function

to_scad(renderable)

View Source
to_scad(any()) :: String.t()

Renders an OpenSCAD.Renderable to a string with a trailing newline.

Link to this function

translate(children, kwlist \\ [])

View Source
Link to this function

union(children, kwlist \\ [])

View Source
Link to this function

write(renderable, filename)

View Source
write(any(), Path.t()) :: :ok | {:error, atom()}

Writes an OpenSCAD.Renderable out to a file