Smooth a region
smooth_region
Smooths the surface round a point, fading out, leaving everything else exactly as it is.
- 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 takesproject,editorandrequest_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.
| Input | Type | What it is |
|---|---|---|
| bodyneeded | string | The 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_mmneeded | number | Radius, in mm. |
| falloff_mm | number | How far beyond the radius the smoothing fades out; half the radius when left out. |
| strength | number | 0 to 1; 0.5 when left out. |
| iterations | whole number | 1 to 200; 10 when left out. |
| symmetry | one of "x", "y", "z", null | Mirror across. |
| protect | a list of an object | Places that must not move, such as the eyes or a horn.Not in the Tools tab's form. |
| preview | boolean | true 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
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.