Set Mesh
set_meshOverwrite point positions and polygon indices of an editable Cinema 4D object, supporting triangles and quads, with a single undo entry.
Instructions
Overwrite the points (and optionally polygons) of an editable object. Triangles may be passed as [a,b,c]; the bridge expands them to C4D's quad storage (a,b,c,c). If polygons is omitted, only points are rewritten and the count must match the existing topology. Wrapped in a single undo entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | Target editable object. | |
| points | Yes | New point positions. | |
| polygons | No | New polygon indices. [a,b,c] = triangle, [a,b,c,d] = quad. |