optimize_print_orientation
Automatically test multiple orientations for a 3D model and reorient it to reduce overhangs and improve bed contact, then place flat on the build plate.
Instructions
Auto-rotate a mesh to minimize overhangs and maximize bed contact.
Tests multiple candidate orientations and picks the one with the
best printability score. Re-orients the mesh and places it flat
on the build plate (z_min = 0).
:param file_path: Path to the STL file.
:param output_path: Output path. Defaults to overwriting the input.
:returns: Dict with rotation angles, overhang stats, and new dimensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No |