millisketch

Meshes

Remesh

remesh_mesh

Rebuilds a mesh's triangles evenly at an edge length, keeping its shape, creases and openings.

EditorTools tabAgentMCP
Needs
One body picked in 3D, or the one in Edit mode.
In the editor
3D, an imported mesh picked: Remesh, 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 remesh_mesh, each call one step to undo. Over MCP it also takes project, editor and request_id.

What it does

A mesh's triangles rebuilt evenly, close to equilateral, at the edge length asked, with creases sharper than the feature angle (40° by default) kept and every opening's rim where it was, each new point on the old surface.

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.
target_edge_mmneedednumberThe edge length to aim for, in mm.
max_deviation_mmnumberHow far the surface may move, in mm; a tenth of the edge, at most 0.1, when left out.
feature_angle_degnumberEdges creased more than this are kept; 40 when left out.
previewbooleantrue to run it and report what it would change, changing nothing; then call again without it to apply.

Limits

  • Refused, changing nothing, if the surface would move more than the deviation allowed (a tenth of the edge, at most 0.1 mm, by default), cross itself, or lose an opening.
  • Subdividing mends nothing: Repair a mesh does. A changed body becomes an imported mesh of its own, uploaded with the project's next Save.

Examples

Preview an even 8 mm mesh

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

remesh_mesh { "body": "Mask", "target_edge_mm": 8, "preview": true }

Then: How many triangles it would have and how far the surface would move; nothing changed.

Too fine for a thin wall

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

remesh_mesh { "body": "Mask", "target_edge_mm": 3, "preview": true }

Refused: The remeshed surface would cross itself, so it is not kept and nothing changes; the reply gives the counts before and after.