millisketch

Meshes

Inspect a mesh

inspect_mesh

Checks a mesh for crossings, open edges, bad triangles and thin walls, and marks them.

EditorTools tabAgentMCP
Needs
One body picked in 3D, or the one in Edit mode.
In the editor
3D, an imported mesh picked: Inspect, under Mesh tools in the Object tab.
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 inspect_mesh, which changes nothing. Over MCP it also takes project, editor.

What it does

A body's mesh checked, in the geometry worker, before printing it or changing it: its pieces, its openings with their ids, edges shared by more than two triangles, empty and doubled triangles, faces turned the wrong way, places where the surface truly crosses itself, and the wall's thickness measured at every vertex against the thinnest wall that prints, 1.2 mm by default.

Each place found is marked in 3D, red where it crosses, orange where it is thin. Watertight is said apart from clean, and clean apart from ready to print: a closed mesh can still cross itself.

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: an imported mesh, or any body, which becomes an imported mesh once changed.
min_wall_mmnumberThe thinnest wall that prints, in mm; 1.2 when left out.

Limits

  • It changes nothing: Repair a mesh mends what it finds.
  • Any body can be inspected; the mesh tools are under Mesh tools in the Object tab for an imported mesh, and in the Tools tab for any body.

Examples

Check a hollow mask before printing

Given: Mask, a hollow mask imported as a mesh, at the origin.

inspect_mesh { "body": "Mask" }

Then: One closed, clean piece: ready to print, with the wall's thickness from its thinnest to its thickest.