millisketch

Meshes

Smooth a region

smooth_region

Smooths the surface round a point, fading out, leaving everything else exactly as it is.

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

What it does

The surface smoothed within a radius of a point, fading to nothing over a further distance (half the radius by default); every point further away, every opening's rim and every protected place stays exactly where it is. With symmetry, the same is done mirrored across the body's own middle plane square to that axis, and the result kept symmetric.

In the editor and the Tools tab, the point is the one last tapped on the model.

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.
centreneeded[x, y, z][x, y, z] in mm, in the document's frame: a point on or near the body as it stands.
radius_mmneedednumberRadius, in mm.
falloff_mmnumberHow far beyond the radius the smoothing fades out; half the radius when left out.
strengthnumber0 to 1; 0.5 when left out.
iterationswhole number1 to 200; 10 when left out.
symmetryone of "x", "y", "z", nullMirror across.
protecta list of an objectPlaces that must not move, such as the eyes or a horn.Not in the Tools tab's form.
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 cross itself.
  • Places to protect are the agent's and MCP clients' input alone: the Tools tab has no field for them.

Examples

Preview a smoother brow, mirrored

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

smooth_region { "body": "Mask", "centre": [0, -60, 140], "radius_mm": 20, "symmetry": "x", "preview": true }

Then: How far the surface would move round the brow and its mirror; nothing changed.