Skip to content

How to specify units (e.g. mm or inches)? #2193

Answered by hannobraun
xpe asked this question in Q&A
Discussion options

You must be logged in to vote

One doesn't 😄

It's a good question, but it's just not something I have looked into so far. The only place (as far as I remember) where units play a role, is exporting to 3MF (as STL doesn't support specifying a unit; again, as far as I remember). 3mf-rs supports specifying the unit, but Fornjot simply doesn't, so it defaults to millimeters.

It should be pretty straight-forward to expose unit selection via API and/or CLI argument, when exporting to 3MF. If that's something you need, please let me know and I'd be happy to look into it (or merge a pull request that does it).

Long-term, it probably makes sense to handle units as part of the core kernel code, not just exporting. But that's som…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xpe
Comment options

Answer selected by xpe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants