remove_mesh_floating_regions
Remove floating geometry from STL files by identifying and deleting small disconnected components. Customize which components to keep based on size thresholds.
Instructions
Remove small disconnected components (floating geometry).
Downloads and marketplace models often contain support pillars,
internal fragments, or other floating geometry. This tool
identifies connected components and removes the small ones.
:param file_path: Path to the STL file.
:param output_path: Output path (defaults to overwriting input).
:param keep_largest: Keep only the largest component (default True).
:param min_triangle_pct: Min triangle % to keep (when keep_largest=False).
:returns: Dict with removal statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No | ||
| keep_largest | No | ||
| min_triangle_pct | No |