repair_mesh
Fix mesh defects reported by analyze_mesh_quality by removing loose geometry, dissolving degenerate faces, and optionally filling holes. Returns before/after counts to show the effect.
Instructions
Repair the defects analyze_mesh_quality reports.
Pairs with analyze_mesh_quality: run that first, then call this with the repairs the report calls for. Removing loose geometry and dissolving degenerate faces cannot change a well-formed mesh, so both are on by default. Filling holes creates new geometry and is opt-in.
Args: object_name: Name of the mesh object to repair. remove_loose: Delete loose vertices and wire edges, the ones reported as loose_vertex_count and wire_edge_count. dissolve_degenerate: Dissolve zero-area faces and zero-length edges, reported as zero_area_face_count. fill_holes: Close boundary loops, which reduces non_manifold_edge_count but invents geometry to do it.
Returns: Dict with the counts before and after, so the effect is visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill_holes | No | ||
| object_name | Yes | ||
| remove_loose | No | ||
| dissolve_degenerate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||