millisketch

Read

List a body's faces

list_faces

Lists a body's flat faces, to extrude or inset one.

EditorTools tabAgentMCP
Needs
One body picked in 3D, or the one in Edit mode.
Tools tab
A form of its inputs, filled from what is picked; Run makes the change, one step to undo.
Agent and MCP
The chat's agent and MCP clients call list_faces, which changes nothing. Over MCP it also takes project, editor.

What it does

Each flat face of the body as it stands, the largest first: its number, its outward normal, its centre in the document's millimetres and its area, up to forty of them, with how many flat and curved faces the body has in all.

A face's number is what Extrude a face and Inset a face take. So is the side it looks to: "+z" is the largest flat face facing up.

Inputs

As the agent and MCP clients send them. One left out takes the default its description gives.

InputTypeWhat it is
bodyneededstringThe body's id or its name.

Limits

  • Curved faces are counted, not listed: they cannot be extruded or inset.
  • A change that reshuffles a body's faces, such as a gear's tooth count, can leave a step or a face colour on a different face.

Examples

The faces of a box

Given: Box 1, a 20 mm box standing on the ground at the origin.

list_faces { "body": "Box 1" }

Then: Six flat faces of 400 mm² each, the top's normal [0, 0, 1] and its centre [0, 0, 20]; no curved face.