Trim an outline
trim_outline
Takes a thin spur or stray stroke off the ink.
- 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
trim_outline, each call one step to undo. Over MCP it also takesproject,editorandrequest_id.
What it does
A thin part of a keychain's ink taken off where it joins thicker ink: a spur that comes off wider ink comes off whole, and a whisker branching off the outline, thin all along, is severed at the point and what falls off comes away. The keychain's other outlines, areas and openings stay as they are.
The reply says what was taken off and how far the outline moved where it was not changed (shift_mm, about a pixel at most). In the Tools tab, tap the spur first: the point tapped is where it trims.
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 ink's id or name, or any body of the same keychain. |
| atneeded | [x, y] in mm | [x, y] in mm on or beside the part, in the document's millimetres as at_mm reads. |
| width | number | The most the part may be across, in mm: 0.3 to 10, 2 when left out. |
Limits
- A part that is a wall between areas, or that joins two parts of the drawing, is refused; so is a point with nothing thin near it, with the thin parts there are listed.
- A keychain whose bodies carry steps on their faces is refused, their faces being lost to the change.
Examples
Given: A keychain traced from a drawing of a cat, its ink named Cat keychain.
Inspect a traced body first: the spur is among its thin_parts, beside the tail. Trim at its at_mm.
Then: The spur is gone; every other outline is where it was, to about a pixel.