Bounding Box
bounding_boxMeasure the axis-aligned or oriented bounding box of a shaped object in world coordinates, returning min, max, size, center and diagonal; enable tight mode to get mesh-verified dimensions.
Instructions
Axis-aligned bounding box (AABB) of a shaped object, mm, world coordinates. A measurement: returns numbers, creates nothing.
QUIRK (#284): min/max/size are OCC's ANALYTIC box, an UPPER bound. A trimmed
face is boxed by its untrimmed carrier surface, so cuts through fillets,
chamfers, lofts or spheres can report mm of material that isn't there (a real
trim at X=-32.0 read -36.7). Before calling a part wrong-sized, check
verified and pass tight=True.
oriented: also return the minimum-volume box at any orientation (OBB) under "oriented" (null if unsupported). Same analytic over-estimate. tight: also tessellate and return the mesh-derived box under "tight" — the trustworthy numbers. Opt-in: ~1.4s on a 200mm plate with 60 filleted holes. deflection: mesh chord tolerance mm for tight (default diagonal/2000, floor 0.001).
Returns {min, max, size, center ([x,y,z] mm, analytic), diagonal (mm), oriented (null | {size, center, diagonal}), verified, tight (null | {min, max, size, center, diagonal, deflection, triangles}), warnings (which face over-estimates, by how many mm)}. verified: "exact" (vertices touch all six faces) | "mesh_agrees" (tight found no disagreement) | "unverified" (usual on curved parts: upper bound only, re-run tight=True) | "over_estimate" (use "tight"; min/max/size wrong-big). The true box lies between "tight" and the analytic box.
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": {
"handle": "<handle>"
},
"name": "bounding_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tight | No | ||
| handle | Yes | ||
| oriented | No | ||
| workspace | No | Run this call in this named workspace | |
| deflection | No |