split_mesh_by_component
Split a multi-component STL mesh into individual files by identifying disconnected bodies with shared-edge analysis. Returns component count and file paths.
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.INLINE 3D STAGE: on success this tool also opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_dir | No |