get_faces
Retrieve face data from a mesh object, including vertex indices, normals, centers, material indices, and areas. Specify faces by indices or get all with a safety cap.
Instructions
Read face data from a mesh object.
Parameters:
name: Mesh object name
indices: Comma-separated face indices to retrieve (returns all if omitted)
world_space: True = world coordinates for normals and centers (default)
max_faces: Safety cap when retrieving all faces (default 2000)
Returns JSON with each face's vertex_indices, normal, center, material_index, and area.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| indices | No | ||
| world_space | No | ||
| max_faces | No |