mesh_holes
Detect fastener holes in imported STL meshes by slicing on three axes. Returns hole count, axis, diameter, location, span, depth, and through status to identify mounting features.
Instructions
Find fastener holes in a MESH by slicing it on all three axes. Returns JSON {count, holes:[{axis, diameter, location, span, depth, through}]} where axis is the drilling direction and location is the hole centre in world coordinates. This is the mesh counterpart to find_holes(), which needs real topology and returns nothing for an imported STL - the usual case when remixing a downloaded model and you need its existing mounting features before designing a part that bolts on. Read depth and through: a blind pocket a few mm deep is a heat-set insert seat, not a screw hole, and coaxial pockets bored into opposite faces are reported separately rather than merged into one false through hole. min_diameter/max_diameter default to M2-M8 clearance, counterbores and insert pockets. min_depth drops chamfer rings and tessellation slivers. It reports what the cross-sections show and does not classify countersinks or thread forms. object_name: named object from show()/import_cad_file (default: current shape).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weld | No | ||
| slices | No | ||
| min_depth | No | ||
| tolerance | No | ||
| object_name | No | ||
| max_diameter | No | ||
| min_diameter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |