clearance
Determine the spatial relationship between two named 3D shapes. Reports gap distance, containment type, and intersection volumes for apart, touching, containing, or interpenetrating cases.
Instructions
Spatial relationship between two named shapes. Returns JSON with clearance (mm), status (one of: apart, touching, containing, interpenetrating), containment (a_in_b, b_in_a, or neither), and intersection_volume / a_volume_outside_b / b_volume_outside_a for overlap quantification. Reads clearance differently per status: apart=gap, containing=wall thickness from inner surface to outer hull (use this to verify a pocket fits inside a plate), touching=0, interpenetrating=0 (check intersection_volume + a_volume_outside_b for the wall-piercing case). object_a, object_b: names from show().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_a | Yes | ||
| object_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |