thicken_mesh_walls
Thicken thin part walls by offsetting surfaces outward by a set amount, fixing models flagged as fragile by printability analysis while keeping round holes sized for screws.
Instructions
Thicken a part's walls by moving every surface out amount_mm.
Two routes, and the reply says which ran:
* **The CAD file** -- pass the part's STEP file (``.step`` /
``.stp``), or a mesh Kiln converted from one that still sits
beside it. The CAD kernel moves every face exactly, and round
holes keep their size so screws still fit. Walls gain twice the
amount; the outside grows twice the amount on every axis.
* **A mesh** with no CAD file -- vertices are moved and the result
is MEASURED against the input: the thinnest wall must gain at
least the amount, the surface must stay closed, and every hole
must survive. A result that fails is refused with the
measurements and your file is left as it was (on a part with
holes and thin features this is the usual outcome -- use the
CAD route).
Openings that are not round holes (slots, vents, cutouts) narrow by
twice the amount on either route.
Use after ``analyze_printability`` or ``predict_print_failures``
flags thin walls.
AGENT DISPLAY CONTRACT: the reply carries a before|after
self-check of the part. Look at it and write what changed before
calling the job done.
:param file_path: The part: a STEP file, or a mesh (STL/OBJ/3MF).
:param amount_mm: How far every surface moves out, in mm (0-5).
:param output_path: Output path (defaults to ``<name>_thickened.stl``).
:param keep_hole_size: Keep round holes at their diameter
(default). False lets them close in with everything else.
:returns: ``path``, ``method`` (``cad`` or ``mesh``), the
measurements before and after, and a ``note``; or a refusal
saying why the result was worse than the part.INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "thicken_mesh_walls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_mm | No | How far every surface moves out, in mm (0-5). Default: 0.5. | |
| file_path | Yes | The part: a STEP file, or a mesh (STL/OBJ/3MF). | |
| output_path | No | Output path (defaults to ``<name>_thickened.stl``). Default: "". | |
| keep_hole_size | No | Keep round holes at their diameter (default). False lets them close in with everything else. Default: true. |