rescale_model
Rescale STL models to match desired dimensions for 3D printing. Supports uniform scaling by target height, scale factor, or max dimension, as well as per-axis scaling.
Instructions
Rescale an STL model to meet dimensional targets.
Useful when a generated model is the wrong size for the printer's
build volume or doesn't match the desired dimensions.
**Uniform scaling** -- provide exactly ONE of:
- ``target_height_mm``: Scale so Z-axis equals this value.
- ``scale_factor``: Uniform multiplier (2.0 = double size).
- ``max_dimension_mm``: Scale down so largest axis fits this limit.
**Per-axis scaling** -- provide ``scale_x``, ``scale_y``, and/or
``scale_z``. Omitted axes default to 1.0 (no change).
Cannot combine uniform and per-axis options.
Args:
file_path: Path to the STL file to rescale (modified in-place).
target_height_mm: Desired Z-axis height in mm.
scale_factor: Uniform scale multiplier.
max_dimension_mm: Maximum dimension on any axis.
scale_x: Per-axis X scale factor.
scale_y: Per-axis Y scale factor.
scale_z: Per-axis Z scale factor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale_x | No | ||
| scale_y | No | ||
| scale_z | No | ||
| file_path | Yes | ||
| scale_factor | No | ||
| max_dimension_mm | No | ||
| target_height_mm | No |