center_model_on_bed
Center a 3D model on the build plate and set it at z=0. Positions the mesh over the bed, ensuring proper alignment for printing.
Instructions
Center a mesh on the build plate and place at z=0.
Translates the model so it sits centered on the bed with its
lowest point touching the build plate.
:param file_path: Path to the STL file.
:param bed_x_mm: Build plate X dimension (default 256).
:param bed_y_mm: Build plate Y dimension (default 256).
:param printer_id: Optional supported printer model id. When
provided, printer intelligence supplies the bed size.
:param output_path: Output path (defaults to overwriting input).
:returns: Dict with translation applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bed_x_mm | No | ||
| bed_y_mm | No | ||
| file_path | Yes | ||
| printer_id | No | ||
| output_path | No |