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
Functions
slice is something unavailable in openscad.
Renders an OpenSCAD.Renderable to a string with a trailing newline.
Writes an OpenSCAD.Renderable out to a file
Link to this section Functions
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
Renders an OpenSCAD.Renderable to a string with a trailing newline.
Writes an OpenSCAD.Renderable out to a file