optimize_print_orientation
Auto-rotates a 3D mesh to minimize overhangs and maximize bed contact, then places it flat on the build plate for improved printability.
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 |