preview
Turn OpenSCAD code into a 2D visual preview, exported as PNG, SVG, DXF, or PDF. Adjust camera angles and rendering options to inspect the model from any view.
Instructions
Generate a 2D preview of OpenSCAD code. Export as PNG image or vector formats (SVG, DXF, PDF). Use camera settings to control the view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scad | Yes | OpenSCAD code to preview | |
| width | No | Image width in pixels (for PNG) | |
| camera | No | Camera position: "tx,ty,tz,rx,ry,rz,dist" (gimbal) or "ex,ey,ez,cx,cy,cz" (look-at) | |
| format | No | Output format: png (image), svg/dxf/pdf (2D vector) | png |
| height | No | Image height in pixels (for PNG) | |
| render | No | Use full CGAL render instead of preview (slower but more accurate) | |
| viewall | No | Adjust camera to fit entire design | |
| autocenter | No | Center the design in the view | |
| parameters | No | Variables to pass to OpenSCAD | |
| projection | No | Projection type | perspective |
| colorscheme | No | Color scheme for rendering | Cornfield |