Smooth an outline
smooth_outline
Rounds off a rough, jagged outline.
- Needs
- One traced keychain 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
smooth_outline, each call one step to undo. Over MCP it also takesproject,editorandrequest_id.
What it does
A rough, jagged outline from the trace rounded off, every body of the keychain together: the ink and its parts, the frame's own outline, each area and layer, each stacked body on its own. The amount, 0.05 to 0.5 mm, 0.3 by default, is how far: corners sharper than about that round off.
It holds back where the drawing is thin: within 0.15 mm near lines and gaps narrower than 0.7 mm, and not at all across a neck a blur would cut or a gap it would close. With a point and a radius only that disc changes, fading out at its edge. The reply gives the sharp corners on the outside before and after and how far the outline moved.
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 | Any body of the keychain. |
| amount | number | How far the outline is smoothed, in mm: 0.05 to 0.5, 0.3 when left out. |
| at | [x, y] in mm | [x, y] in mm, the middle of the only disc to smooth, in the document's millimetres; left out, the whole keychain. |
| within | number or null | The disc's radius in mm, 0.5 to 100, with at; 5 mm when left out. |
Limits
- Refused, saying where, when a piece, an area or an opening would still be lost.
- The outline moves by at most twice the amount and a pixel.
Examples
Given: A keychain traced from a drawing of a cat, its ink named Cat keychain.
Smooth an outline on any body of the keychain with the amount left out, 0.3 mm.
Then: Far fewer sharp corners on the outside; the reply says where it smoothed less and kept the drawing as drawn.