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.
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": {
"name": "<name>"
},
"name": "get_faces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| indices | No | ||
| max_faces | No | ||
| world_space | No |