boolean_verified
Verifies boolean operations by measuring volume before and after, flagging short or missed cuts that plain booleans accept. Also handles target handle retention.
Instructions
Boolean that MEASURES what it did: volume before and after, and the change checked against expected_change (mm3, worked out from the shape you meant to remove or add). Catches the two failures a plain boolean reports as success: a cut that lands SHORT (the tool solid did not fully span the part, so volume drops and it looks fine - the leftover is a sliver you find in the slicer) and a cut that misses altogether (change exactly 0). Also encodes the trap that the result KEEPS the target's handle: SUBTRACT/UNION/INTERSECT write into the first solid instead of making a new entity, so (entlast) after a boolean belongs to somebody else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | subtract | |
| tol_pct | No | ||
| tool_handles | Yes | ||
| target_handle | Yes | ||
| expected_change | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |