auto_orient_model
Evaluates rotations of an STL or OBJ mesh to find the best print orientation, ranking candidates by support volume, overhangs, bed contact and height. Optionally applies the best turn and writes the reoriented mesh.
Instructions
Find the optimal print orientation for a 3D model.
Evaluates multiple rotations of the model, ranks them, and
reports each candidate's bed contact, support volume, print
height and overhang share. Candidates come in the order Kiln
ranks them for this account; each candidate's ``score`` is its
bed-contact percentage, so a later candidate can score higher
than the best. ``message`` says what the best turn changes
(support, overhangs, bed contact, height) or that the part
already sits best. With ``apply``, writes the reoriented mesh
to ``output_path`` (a file already there is replaced).
Args:
file_path: Path to an STL or OBJ mesh file.
candidates: Number of candidate orientations to evaluate
(default 24).
nozzle_diameter: Printer nozzle diameter in mm (default 0.4).
apply: If True, apply the best orientation and write the
reoriented STL to disk.
output_path: Output path for the reoriented STL. Only used
when ``apply`` is True. Defaults to
``<input>_oriented.stl``.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "auto_orient_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | If True, apply the best orientation and write the reoriented STL to disk. Default: false. | |
| file_path | Yes | Path to an STL or OBJ mesh file. | |
| candidates | No | Number of candidate orientations to evaluate (default 24). Default: 24. | |
| output_path | No | Output path for the reoriented STL. Only used when ``apply`` is True. Defaults to ``<input>_oriented.stl``. | |
| nozzle_diameter | No | Printer nozzle diameter in mm (default 0.4). Default: 0.4. |