compare_renders
Render two OpenSCAD model versions side-by-side for visual comparison, using different code or variable sets to highlight changes.
Instructions
Render two versions of a model for visual comparison.
Supports two modes:
Two different SCAD contents: provide scad_content_before and scad_content_after.
Same file with different variables: provide scad_file with variables_before and variables_after.
Both versions are rendered in parallel for efficiency. Uses the existing render_scad_to_png helper and QUALITY_PRESETS.
Args: scad_content_before: OpenSCAD code for the "before" version scad_content_after: OpenSCAD code for the "after" version scad_file: Path to OpenSCAD file (used with variable diffs) variables_before: Variables for the "before" render variables_after: Variables for the "after" render view: View preset name (default: "isometric"). Valid names: "front", "back", "left", "right", "top", "bottom", "isometric", "dimetric" image_size: Image dimensions - accepts "widthxheight", "width,height", "[width, height]", or [width, height] list (default: [800, 600]) quality: Quality preset - "draft", "normal", or "high" (default: "draft") ctx: MCP context for logging
Returns: List with before/after images and metadata
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | isometric | |
| quality | No | draft | |
| scad_file | No | ||
| image_size | No | ||
| variables_after | No | ||
| variables_before | No | ||
| scad_content_after | No | ||
| scad_content_before | No |