Geometry Measure
geometry_measureMeasure B-rep CAD files (.step/.stp/.iges/.igs/.brep) in mm: volume, surface area, bounding box, mass, face/hole inventory, and up to 20 distance, angle, diameter, radius, area, or thickness queries.
Instructions
B-rep measurements of a 3D CAD model file (.step .stp .iges .igs .brep; read in millimetres): convergence-checked volume and surface area, conservative bounding-box size, optional mass, an inventory of faces by kind and of round holes (diameter, depth, through or blind), and up to 20 queries. 'queries' is a ';'-separated list of 'distance A B', 'angle A B' (degrees), 'diameter A', 'radius A', 'area A' and 'thickness P(x, y, z) ' (wall thickness along a ray). A and B are F (face number from data.faces), H (hole from data.holes) or P(10 mm, 0 mm, 5 mm) (a point, units required); axis is one of +x -x +y -y +z -z. Results q1, q2, ... follow the order of the queries. Face and hole ids belong to one file: call once without queries to read the inventory, then ask. A file without a closed solid (a shell, loose faces, or a solid whose shell is open) has no volume: surface_area becomes the primary value. Loose faces beside closed solids are left out of volume and mass, listed in data.closure, and warned about. Needs the optional cad engine (uv sync --extra cad). Mesh files (.stl) are not supported yet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_path": "<model_path>"
},
"name": "geometry_measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| density | No | Optional material density with unit, e.g. '2700 kg/m^3'; adds 'mass'. Empty = no mass | |
| queries | No | Optional ';'-separated queries, at most 20, e.g. 'distance F3 H1; angle F3 F6; diameter H1; thickness P(10 mm, 10 mm, 30 mm) -z'. A and B are F<n>, H<n> or P(x, y, z) with units. Empty = only the model properties and inventory | |
| model_path | Yes | Path to the model: .step .stp .iges .igs or .brep | |
| output_unit | No | Length unit of the results, e.g. 'mm', 'um', 'inch' | mm |
| inventory_limit | No | Faces and holes listed in data, 0 to 500. inventory.json always lists all of them |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |