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

add parameter for setting the output unit #9

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jmairboeck
Copy link
Contributor

fixes #4

@jmairboeck jmairboeck marked this pull request as draft March 11, 2022 09:52
src/STEPToMesh.cpp Show resolved Hide resolved
src/STEPToMesh.cpp Outdated Show resolved Hide resolved
 * initialize units at the start and set it globally and not in read
@jmairboeck jmairboeck marked this pull request as ready for review March 14, 2022 11:18
@@ -128,19 +130,40 @@ void write(const std::string& outFile, const std::vector<NamedSolid>& namedSolid
if (!writer.Write(compound, outFile.c_str())) throw std::logic_error{std::string{"Could not write '"} + outFile + "'"};
}

std::string str_toupper(std::string s) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need this? Or should we only support unit names in upper case?

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 this pull request may close these issues.

allow to specify units for STL output
1 participant