Measure Geometry
measureComputes distance, thickness, draft, ray-grid hits, point geometry, sections, and edge continuity from STEP entity IDs for CAD inspection and validation.
Instructions
Measure distance, wall thickness, draft, rays/ray grids, point geometry, planar sections, or edge continuity. Use the artifact reference and entity IDs from the same find_entities result. Lengths are in the declared unit, which is labelled on every result. Ray grids report their grid size and can be refined with max_rays up to 20000. Fetch the cad://help resource for the required fields of each kind. Returns geometric measurements only, not engineering acceptance or design recommendations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Measurement to perform. Each kind takes a different argument set; see the field notes here and the per-kind requirements in cad://help. | |
| checks | No | point_analysis: one or more of contains_body, classify_face, closest_face_point, surface_curvature, edge_projection. | |
| detail | No | Per-sample detail to return: "stats" (default), "samples", or "hits". | |
| origin | No | ray and ray_grid: explicit ray origin [x, y, z]. Mutually exclusive with origin_mode. | |
| points | No | point_analysis: points to test, in model coordinates (mm), up to 100. | |
| sources | No | distance only: entities to measure from (face:N, edge:N, body:N, or a component-scoped form). | |
| spacing | No | ray_grid: grid pitch in the STEP artifact’s declared length units, at most 1000. | |
| summary | No | distance only: "all" returns every pair, "minimum" (default) returns the closest pair only. | minimum |
| targets | No | distance only: entities to measure to. | |
| artifact | Yes | Revision-bound STEP reference from inspect: { uri, revision, format, units }. Rejected if the file changed since inspect. | |
| max_rays | No | ray_grid and thickness: maximum ray casts, 1 to 20000. Default 4000. Raising it allows a finer grid at proportionally higher cost. | |
| direction | No | ray and ray_grid: ray direction as an explicit [x, y, z] vector. Mutually exclusive with direction_mode. | |
| tolerance | No | continuity and point checks: geometric tolerance in millimetres. | |
| entity_ids | No | Every kind except distance: the entities to measure. Faces for thickness, draft, ray and ray_grid; edges for continuity; faces or bodies for section and point_analysis. Up to 100 IDs. | |
| origin_mode | No | ray and ray_grid: place the origin at the entity extent instead of passing origin: extent_min, extent_center (default), or extent_max. | |
| max_distance | No | ray, ray_grid and thickness: ignore hits beyond this distance in the STEP artifact’s declared length units. | |
| plane_normal | No | section: cutting-plane normal. | |
| plane_origin | No | section: a point on the cutting plane. | |
| bidirectional | No | ray and ray_grid: also shoot from the origin in the opposite direction. | |
| direction_mode | No | ray and ray_grid: "axis" shoots along the entity axis, "normal" along the entity normal (faces only). Mutually exclusive with direction. | |
| pull_direction | No | draft only: mould pull direction as an explicit [x, y, z] vector. Mutually exclusive with pull_direction_mode. | |
| pull_direction_mode | No | draft only: "axis" or "normal" shortcut for the pull direction (faces only). Mutually exclusive with pull_direction. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| units | Yes | ||
| artifact | Yes | ||
| subjects | Yes | ||
| coordinate_frame | Yes | ||
| entity_id_scheme | Yes |