Min Clearance
min_clearanceMeasure the minimum distance between two solids to determine clearance status: clear, contact, or interference. Returns gap size, contact points, and overlap volume for precise design validation.
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").
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": {
"a": "<a>",
"b": "<b>"
},
"name": "min_clearance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| workspace | No | Run this call in this named workspace |