split_mesh_by_component
Identifies disconnected bodies in a 3D mesh and saves each component as an individual STL file.
Instructions
Split a multi-component mesh into separate STL files.
Identifies disconnected bodies (components) using shared-edge
analysis and writes each as a separate file.
:param file_path: Path to mesh file (.stl).
:param output_dir: Directory for output files. Defaults to input directory.
:returns: Dict with component count and file paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_dir | No |