render
Renders OpenSCAD code into PNG images for visual inspection, supporting multiple views, section cuts, part isolation, and before/after comparisons with camera control.
Instructions
Images of a model, each preceded by a text digest (view direction, camera, scale, bbox) and followed by metadata with errors/warnings/ hints. Check those: OpenSCAD draws a blank scene and exits 0 on a failed assert or unknown module. mode "views": one image per view (default ["isometric"]; front back left right top bottom isometric dimetric) or a custom camera_position. "section": exact cut at section_axis=section_offset (mm, or an expression in the model's scope). "parts": parts=[{name, code, place?, color?, ghost?, explode?}] in stable colours; isolate=name ghosts the rest. "compare": before/after via variables_after or scad_content_after. grounded=true gives an orthographic view with an exact mm/px scale; annotate=true adds scale bar, axis triad and bbox size; look_at=part | [x,y,z] | {min,max} frames that box; callouts=[{label, at}] label points. Auto-fit views have no absolute scale. quality: draft|normal| high. image_size default 800x600 (~640 tokens per image).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | views | |
| parts | No | ||
| views | No | ||
| isolate | No | ||
| look_at | No | ||
| quality | No | ||
| annotate | No | ||
| callouts | No | ||
| grounded | No | ||
| camera_up | No | ||
| scad_file | No | ||
| variables | No | ||
| image_size | No | ||
| color_scheme | No | Cornfield | |
| scad_content | No | ||
| section_axis | No | z | |
| camera_target | No | ||
| include_paths | No | ||
| section_offset | No | ||
| camera_position | No | ||
| variables_after | No | ||
| scad_content_after | No |