OpenSCAD
v1.0.6Render STL and PNG from OpenSCAD code.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
render_scad_png Render OpenSCAD source to a PNG image
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}).
| Parameter | Type | Description |
|---|---|---|
scadCode * | string | The OpenSCAD code to render |
cameraPosition | object | Camera position as { x,y,z }. Example: { x: 0, y: -25, z: 20 } |
cameraPreset | string | A named camera preset used when `cameraPosition` is not provided |
height | number | The height of the output image in pixels (default: 600) |
width | number | The width of the output image in pixels (default: 800) |
export_scad_stl Export OpenSCAD source to an STL
Export OpenSCAD (SCAD) source code into an STL and return it as an embedded resource blob.
| Parameter | Type | Description |
|---|---|---|
scadCode * | string | The OpenSCAD code to render |
filename | string | The name of the output STL file |