min_clearance
Measure the closest approach between two solids to determine clearance, contact, or interference. Get gap in mm and overlap volume if they interpenetrate.
Instructions
Closest approach between two solids — the measured gap, richer than the
binary interference_check. a and b are object handles. All lengths mm,
volumes mm³.
Returns a dict:
status: "clear" (a positive gap separates them),
"contact" (faces/edges touch, gap ~ 0), or
"interference" (the solids interpenetrate / share material).
clearance_mm: minimum distance between the two solids (mm). 0.0 when they
are touching or interfering.
overlap_volume_mm3: volume of interpenetration (mm³). Present ONLY when
status == "interference".
point_on_a: [x,y,z] of the closest point on a. Present when status is
"clear" or "contact" (omitted for "interference").
point_on_b: [x,y,z] of the closest point on b. Present when status is
"clear" or "contact" (omitted for "interference").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |