render
Export OpenSCAD scripts to STL, PNG, DXF, SVG, or other formats in the workspace and return geometry reports, bounding boxes, and volume for STL outputs.
Instructions
Render a script to a file in the workspace. The format is taken from the output extension: stl, off, amf, 3mf, dxf, svg, csg, png.
Returns the manifold report OpenSCAD prints (simple, volumes, facets), plus bounding box and volume when the output is an STL.
A png output keeps the picture instead of handing it back, which is what preview does. Use render when the image is the artefact — a before and after pair, a figure for a page — and preview when you only want to look. The view options below apply to png alone and mean what they mean in preview: camera is OpenSCAD's own string, seven numbers for gimbal style (translate x,y,z, rotate x,y,z, distance) or six for eye then centre. Leave camera unset and viewall frames the model. projection is "o" for orthogonal or "p" for perspective. full_render evaluates the real geometry rather than the preview approximation: slower, but it shows what would export, which matters for anything cut or differenced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| camera | No | ||
| output | Yes | ||
| source | No | ||
| defines | No | ||
| imgsize | No | 800,600 | |
| measure | No | ||
| viewall | No | ||
| timeout_s | No | ||
| projection | No | o | |
| colorscheme | No | Tomorrow | |
| full_render | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||