scale_mesh_to_fit
Shrink an oversized 3D mesh to the largest size that fits your printer's build volume, preserving aspect ratio. Auto-scales STL files for 3D printing.
Instructions
Auto-scale a mesh to fit within a build volume while maintaining aspect ratio.
Useful when a model is too large for your printer -- this uniformly
shrinks it to the largest size that fits.
:param file_path: Path to mesh file (.stl).
:param max_x_mm: Maximum X dimension of build volume.
:param max_y_mm: Maximum Y dimension of build volume.
:param max_z_mm: Maximum Z dimension of build volume.
:param printer_id: Optional supported printer model id. When
provided, printer intelligence supplies the build volume.
:param output_path: Output path. Defaults to overwriting input.
:returns: Dict with original/new dimensions and scale factor.INLINE 3D STAGE: on success this tool also 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_x_mm | No | ||
| max_y_mm | No | ||
| max_z_mm | No | ||
| file_path | Yes | ||
| printer_id | No | ||
| output_path | No |