measure
Get exact measurements from OpenSCAD models: bounding box, volume, area, section cuts, mass, probe points, holes, and printability analysis for design validation.
Instructions
Exact numbers from a model's geometry (mm). Prefer this over judging a picture. parts=[{name, code, place?, material?, mass_g?}] names assembly parts; coordinates are then in the assembly frame. mode "model": bbox, volume, area, solid/cavity counts, watertight, mesh_health (2D: area/perimeter). "parts": per part plus assembly bbox. "section": cut contours at section_axis=section_offset (mm or an expression). "mass": grams for material/density; with parts= and about_axis=[[point],[dir]] the assembly mass, centre of mass and inertia about the axis (mass_g overrides purchased parts). "probe": points -> solid|air and which part, rays=[[ox,oy,oz,dx,dy,dz]] -> crossings, polyline -> line of sight and blocker. "features": holes from the CSG tree: axis, diameter, depth, undersize at $fn, fit names. "printability": overhang patches with unsupported reach, thickness vs nozzle, islands (layer_height_mm), support estimate; facts only. "orientation": candidate orientations, no winner. "anchors": BOSL2 anchors of part="module();". mesh=existing STL/SVG. quality: draft| normal|high or $fn. response_format: concise|detailed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mesh | No | ||
| mode | No | model | |
| part | No | ||
| rays | No | ||
| parts | No | ||
| points | No | ||
| quality | No | ||
| material | No | ||
| polyline | No | ||
| nozzle_mm | No | ||
| scad_file | No | ||
| variables | No | ||
| about_axis | No | ||
| orientation | No | ||
| scad_content | No | ||
| section_axis | No | z | |
| density_g_cm3 | No | ||
| include_paths | No | ||
| section_offset | No | ||
| layer_height_mm | No | ||
| response_format | No | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||