Set Mesh
set_meshReplace the point positions (and optionally polygon indices) of an editable object with new arrays, converting triangles to C4D quad storage and wrapping changes in a single undo step.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"handle": "<handle>",
"points": "<points>"
},
"name": "set_mesh"
}
}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. |