Render OpenSCAD source to a PNG image
render_scad_pngRenders OpenSCAD source code into a PNG preview, with configurable image size and camera perspective via presets or explicit coordinates.
Instructions
Render OpenSCAD (SCAD) source code into a PNG preview image. Provide the SCAD text in scadCode and optionally set width/height (pixels). Optional camera control is available via cameraPreset (named preset) or cameraPosition ({x,y,z}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | The width of the output image in pixels (default: 800) | |
| height | No | The height of the output image in pixels (default: 600) | |
| scadCode | Yes | The OpenSCAD code to render | |
| cameraPreset | No | A named camera preset used when `cameraPosition` is not provided | |
| cameraPosition | No | Camera position as { x,y,z }. Example: { x: 0, y: -25, z: 20 } |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| type | Yes | ||
| _meta | No | ||
| mimeType | Yes | ||
| annotations | No |