check_fit
Checks how assembly pieces fit together by detecting overlaps, clearance gaps, contact faces, and misaligned screw holes against tolerances.
Instructions
How the pieces of assembly(d) fit together, as placed (stand-ins count as obstacles): interference (pairs that overlap: the volume and where; pairs closer than the clearance without touching: the gap and where; faces resting on each other are contact) and hole alignment (round holes of two pieces on one axis are partners: offset beyond hole_tol mm, default 0.2, fails; their diameters read as screw holes, clearance + pilot / insert / nut, and a pair no single screw explains warns; a hole whose axis runs into solid material of the next piece has no partner). Male/female joint pairs from the script's joints(d) (or a Mates(joints=...) in checks(d)) are intentional fits measured against their own clearance. Stand-ins: labels saying stand-in or dummy, or matching no piece of build(). verbose: list the passing pairs too. One variant, or all. Uses the build cache (fresh=True rebuilds).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| fresh | No | ||
| variant | No | ||
| verbose | No | ||
| hole_tol | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |