create_mesh
Construct a mesh from vertices, edges, and faces. Indices are validated first, so bad face references return a clean error rather than a broken object.
Instructions
Build a mesh from explicit geometry.
Indices are validated before anything is created, so a bad face index is a clean error rather than a broken mesh. Keep it to a few thousand vertices; for anything procedural and large, use execute_blender_python with bmesh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new object | |
| edges | No | [[i, j], ...] for standalone edges; faces create their own edges | |
| faces | No | [[i, j, k, ...], ...] indices into vertices, counter-clockwise seen from outside | |
| scale | No | [x, y, z] in Blender units | |
| location | No | [x, y, z] in Blender units | |
| rotation | No | [x, y, z] euler rotation in DEGREES | |
| vertices | Yes | [[x, y, z], ...] in local space | |
| collection | No | ||
| shade_smooth | No | ||
| recalculate_normals | No | Make face normals consistent afterwards |