remove_mesh_floating_regions
Remove small disconnected components from STL files to clean floating geometry like support pillars or fragments. Keeps the largest component or filters by triangle percentage.
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 |