rescale_model
Rescale an STL model to match dimensional targets such as height, scale factor, or maximum dimension. Adjust uniformly or per axis to fit printer build volume.
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 |