select_faces_by_sides
Select faces of one mesh by how many sides they have.
Instructions
Select faces of one mesh by how many sides they have.
The direct way to find ngons (GREATER than 4) or triangles (EQUAL to 3), which is what topology cleanup usually needs. Works inside one mesh; to select whole objects use select_objects.
Args: object_name: Name of the mesh object. number: Number of sides to compare against. A face has at least 3. comparison: One of: LESS, EQUAL, GREATER, NOTEQUAL. extend: Add to the current selection instead of replacing it.
Returns: Dict with how many faces were selected.
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": {
"object_name": "<object_name>"
},
"name": "select_faces_by_sides"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extend | No | ||
| number | No | ||
| comparison | No | EQUAL | |
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||