repair_mesh
Fix degenerate triangles and bad normals in STL meshes. Removes zero-area triangles and recomputes face normals for reliable slicing.
Instructions
Basic mesh repair: fix degenerate triangles and bad normals (fast, safe).
For deeper repair with hole closing and boundary edge fixes, use
``repair_mesh_advanced``. Removes zero-area triangles and recomputes
face normals. Use this on meshes from AI generation providers before
slicing.
:param file_path: Path to the STL file to repair.
:param output_path: Output path. Defaults to overwriting the input.
:returns: Dict with repair statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No |