Best print orientation for 3D printing
The same part can need a lot of supports or almost none, depending on how it sits on the build plate. Here are the trade-offs orientation makes, what Propermesh picks and why, and how to get the turned part back from the API.
What orientation trades off
A model file has no printing direction. Whichever way you turn it before you slice decides which faces sit on the plate, which ones hang in the air, and which way the layers run through every feature. That choice changes four things at once.
- Supports. Every face that leans out over empty space needs support under it. Support costs material and time, and leaves marks on the surface it touches. The overhangs guide covers how steep is too steep.
- Strength. A printed part is strongest along its layers and weakest between them. A tall thin peg printed upright can snap across a layer line, where the same peg lying down would flex instead.
- Surface finish. Curved and sloped faces show stair-steps, and the faces on the plate come out the flattest. The faces you can see or fit against are the ones to protect.
- Print time and height. A tall part takes more layers, and a part lying flat uses fewer but covers more of the bed. Time also goes up with supports, which print as well.
These pull against each other. The orientation with the fewest supports might put a layer line through the part's weakest feature, and the strongest one might need supports under a cosmetic face. Propermesh's orientation job optimizes for FDM printing: it looks for the pose with the least overhang area and a large, flat face on the plate. It's a good default, and you should still check the result against what the part has to do.
Rules of thumb
These are typical starting points, not guarantees. Weigh them against how the part will be used.
| If you care most about | Orient the part so | What it costs |
|---|---|---|
| Fewer supports | The largest flat face is on the plate and nothing leans out under 45°. | Layer lines may cross a thin feature. |
| Strength | Layers run along the direction of the load, not across it. | More supports, and a rougher face where they touch. |
| A clean visible face | It faces up or sits on the plate, and is vertical or flat instead of sloped. | Supports on the faces that are left. |
| Speed | The part is as short as it can be, with the fewest supports. | A wide footprint, and more warping risk on large flat bases. |
| Round holes and pins | Their axis points up, so they print as circles. | Holes on the sides become ovals if the part is turned. |
Resin printers add a peel force to the list: a big flat face parallel to the plate peels all at once, so resin parts are usually tilted. Powder printers (SLS, MJF) need no supports, so orientation there is about strength, finish and how many parts fit in the build volume.
See it on a part
This pipe clamp base arrived the way a CAD export with the wrong up axis arrives: lying on its side. Its 10,388 faces were measured by the overhang analysis in both poses, at the usual 45° critical angle. Switch between the two and watch the part turn: the orange faces are the ones that would need support.
As uploaded, 1,752 mm² of the part needs support, in 9 separate regions. After orienting it, that falls to 66 mm² in 2 regions, 96% less. The part now stands on its flat base with the pipe and tabs rising from it, so the only faces left over empty space are the tops of the cross holes. It's the same mesh both times: the oriented pose is the uploaded one turned by the transform the orient job returns.
See it on a real model: Caliper thumb roller hook, a small tool part whose overhang drops once it's turned.
Orient a part with the API
The orient job tries candidate poses for your part, scores each by its overhang area and the size of its flat face on the plate, and returns the best one as a 4×4 transform. It also saves the turned mesh as a new part linked to the original, so you can analyze, slice or quote it directly.
# The SDK isn't on PyPI yet. The quickstart has the same calls with requests
import os
from propermesh import ProperMeshClient, Units
client = ProperMeshClient(os.environ["PROPERMESH_ACCESS_KEY"], os.environ["PROPERMESH_SECRET_KEY"])
part_id = client.upload_part_file("clamp.stl", Units.mm)
job = client.start_optimal_orientation_job(part_id).json()
result = client.wait_for_optimal_orientation_job_to_complete(job["id"]).json()
# A 4x4 matrix as 4 rows: p_oriented = transform @ [x, y, z, 1], in your part's units
print(result["transform"])
# The turned mesh, to slice or analyze, and the part made from it
open("clamp-oriented.stl", "wb").write(client.get_oriented_stl(job["id"]))
oriented_part_id = result["oriented_part_id"]
# Compare the overhangs before and after
for pid in (part_id, oriented_part_id):
overhang = client.start_overhang_analysis_job(pid, critical_angle=45).json()
done = client.wait_for_overhang_analysis_job_to_complete(overhang["id"]).json()
print(pid, done["overhang_surface_area"])export PROPERMESH_ACCESS_KEY="your access key"
export PROPERMESH_SECRET_KEY="your secret key"
PART_ID=$(curl -s https://propermesh.com/api/v0.1/parts \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-F "file=@clamp.stl" -F "units=mm" | jq -r .id)
JOB_ID=$(curl -s https://propermesh.com/api/v0.1/orient/$PART_ID/start \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-H "Content-Type: application/json" -d '{}' | jq -r .id)
# Run it again until "status" is "complete". "transform" is a 4x4 matrix as 4 rows
curl -s https://propermesh.com/api/v0.1/orient/$JOB_ID \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" | jq '{status, transform, oriented_part_id}'
# The turned mesh. The route redirects to a short-lived storage URL; fetch that without your keys
STL_URL=$(curl -s -o /dev/null -w '%{redirect_url}' \
https://propermesh.com/api/v0.1/orient/$JOB_ID/stl \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY")
curl -s -o clamp-oriented.stl "$STL_URL"The transform is a matrix of 4 rows, applied to column vectors: p_oriented = transform @ [x, y, z, 1], in your part's coordinates and units. It rotates about the origin, then moves the part in z so its lowest point sits at z = 0. It doesn't recenter x and y. Because the turned part is a new part, the faces keep their order, and a layer from an analysis of the oriented part lines up with the turned mesh. That's how this page colors one mesh in two poses. The quickstart covers API keys and uploads, and the full reference is at /docs.
How to choose an orientation
In CAD
- Model with the print direction in mind. Give the part a flat face to stand on, and export it with that face down.
- Check the export axes. Many CAD tools use Y up and printers use Z up, so a part can arrive lying on its side. The orient job fixes this for you.
- Keep thin features off the layer direction. A pin that has to carry load should lie along the plate, not stand across the layers.
- Add a flat to round parts. A sphere or a cylinder on its side touches the plate on a line. A small flat gives it a base.
In the slicer
- Use the lay-flat or auto-orient tool as a start, then rotate by hand to put the important faces where you want them.
- Compare the support estimate before you commit. Most slicers show the support volume or print time for the pose, so you can check two or three.
- Re-check after you turn the part. Moving a part changes the overhangs, the first layer and the bridges, so look at the layer preview again.
- Use a brim on a tall part standing on a small footprint, so it doesn't knock loose.
If no orientation works, the part needs a design change or a split. The wall thickness guide covers the other half of what makes a model hard to print, and the mesh repair guide covers files that won't slice at all.
FAQ
What's the best orientation for 3D printing?
The one with the fewest overhangs that still puts the layer lines where the part can take them. For most parts that's the largest flat face on the plate. For a part that carries load, the layers should run along the load, even if that costs supports.
Does orientation change how strong a part is?
Yes. FDM parts are weakest between layers, so a force that pulls layers apart breaks a part far more easily than one that stretches along them. Resin and powder parts are closer to uniform, but still vary some with the direction.
What does the orient job optimize for?
It targets FDM printing: the pose with the least overhang area that sits on a large flat face. It doesn't know where your part will be loaded or which faces need to look good, so treat the result as a strong default.
How do I use the oriented result?
Download the turned mesh from the job, or use the oriented part it creates to run another analysis, a slice or a quote on the part in print orientation. The transform tells you how it was turned, if you need to apply the same turn to another mesh.
Why does my part look different after orienting?
It was turned, not changed. The mesh keeps its shape, size and faces, and only its pose differs. The orient job doesn't scale or repair it.