mesh_section
Slice a mesh on a chosen plane and get ordered loops, centers, and enclosed passages to identify holes or solid regions in imported STL models.
Instructions
Loops on one cross-section plane of a mesh, largest first. Returns JSON {axis, position, loop_count, enclosed_passages, loops:[{points, center, size, min, max, enclosed}]}, all in the two axes that are not axis. enclosed_passages counts loops at odd nesting depth, representing passages through material at this height. An open groove reads 0. Works on imported STL shells and solids. axis: X, Y or Z (the plane normal). position: absolute world coordinate. tolerance: tessellation tolerance. weld: point-merge distance when chaining segments. object_name: named object from show()/import_cad_file (default: current shape).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | Z | |
| weld | No | ||
| position | No | ||
| tolerance | No | ||
| object_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |