millisketch

Meshes

Ledge round an opening

ledge_opening

Cuts a recessed ledge round one or two openings, to seat fabric behind them.

EditorTools tabAgentMCP
Needs
One body picked in 3D, or the one in Edit mode.
In the editor
3D, an imported mesh picked: tap near the opening, then Ledge round this opening (and its mirror), 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 ledge_opening, each call one step to undo. Over MCP it also takes project, editor and request_id.

What it does

A recessed ledge, a rebate, cut into the inside face round one opening of a hollow body, or a symmetric pair such as two eyes, to seat fabric behind it: the width asked wide, and the depth plus a clearance for the fabric and glue (0.2 mm by default) deep, so the outside and the opening's size stay exactly as they are.

A ledge is not fabric: a fabric thickness adds a separate body that shows it, never part of the printed shell. In the editor and the Tools tab, the point last tapped near the opening says which one.

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.
openingsneededa list of 1 to 2 [x, y, z]A point near each opening, such as each eye's middle.
width_mmneedednumberLedge, in mm.
depth_mmneedednumberDepth, in mm.
clearance_mmnumberRoom for the fabric and glue, added to the depth; 0.2 when left out.
sideone of "inner", "outer"Side.
min_wall_mmnumberWall to keep behind the recess; 0.8 when left out.
insert_thickness_mmnumber or nullThe fabric's thickness, to add a separate visual insert; null for none.
previewbooleantrue to run it and report what it would change, changing nothing; then call again without it to apply.

Limits

  • Refused, changing nothing, where the wall is too thin to keep the wall asked behind the recess (0.8 mm by default), with where and how thin.
  • One or two openings a call.

Examples

A ledge for mesh fabric behind both eyes

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

Tap the mask near one eye, then run Ledge round an opening with that point and its mirror across the mask's middle, 4 mm wide and 1.2 mm deep.

Then: A rebate behind each eye, the outside untouched; or a refusal saying where the wall is too thin.