decimate_mesh
Reduce a mesh's polygon count by collapsing edges to a target ratio. Use to simplify dense meshes from stacked subdivision and speed up later operations.
Instructions
Reduce a mesh's polygon count, collapsing edges to hit a target.
The counterpart to subdivision: an agent that has stacked Subdivision modifiers has otherwise no way back down, and a dense mesh slows every later operation.
Args: object_name: Name of the mesh object to simplify. ratio: Fraction of faces to keep, between 0 and 1. 0.5 halves the face count. 1.0 keeps everything and is refused as a no-op.
Returns: Dict with the face count before and after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | ||
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||