Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to specify units for STL output #4

Open
jmairboeck opened this issue Apr 26, 2021 · 0 comments · May be fixed by #9
Open

allow to specify units for STL output #4

jmairboeck opened this issue Apr 26, 2021 · 0 comments · May be fixed by #9

Comments

@jmairboeck
Copy link
Contributor

jmairboeck commented Apr 26, 2021

Currently, no explicit units can be specified for the resulting STL output. According to this OpenCASCADE forum post, OpenCASCADE converts STEP files to internal units when reading them (by default millimeters), so the STL output, as well as the unit for linear deflection is presumably also in this internal unit.

OCCT recognizes units used in the STEP file (which can be different for different sub-shapes) and converts all geometry to OCCT units (millimeters by default).

Sometimes STL files in a different unit would be beneficial. Maybe an option could be added to STEPToMesh to switch to a different unit before reading and converting the file, if this is supported by OpenCASCADE, e.g. -u inch or --unit inch for inches instead of millimeters. The default should remain millimeters (i.e. not change anything).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant