Skip to content

Conversation

hyperair
Copy link
Contributor

@hyperair hyperair commented Oct 1, 2017

This PR fixes a deserialization issue (all floats end up wrong) that occurs when reading binary STLs on a big-endian machine, e.g. powerpc.

@hyperair hyperair force-pushed the fix-BE-stl-reading branch from 0eda515 to 5431ce4 Compare October 1, 2017 10:19
Also use uint32_t instead of int for header_num_facets as per the binary STL
spec.
@hyperair hyperair force-pushed the fix-BE-stl-reading branch from 5431ce4 to ca21b35 Compare October 1, 2017 10:28
@hroncok
Copy link
Member

hroncok commented Oct 1, 2017

Thanks for you contribution. However, this doesn't compile on Mac, and it produces some errors with -Werror. Would you be able to fix those problems?

@hyperair
Copy link
Contributor Author

hyperair commented Oct 1, 2017

@hroncok Could you fetch again? I think I've already fixed them.

@hroncok
Copy link
Member

hroncok commented Oct 1, 2017

I'm not fetching, I'm watching the Travis CI integration here.

@hyperair
Copy link
Contributor Author

hyperair commented Oct 1, 2017

Oh oops, looks like a different error from the one I fixed. I'll have a look, thanks.

@hyperair hyperair force-pushed the fix-BE-stl-reading branch from 19a84aa to d2c9f2a Compare October 1, 2017 11:29
Fixes this warning:
src/portable_endian.h:1:1: error: C++ style comments are not allowed in ISO C90 [-Werror]
@hyperair hyperair force-pushed the fix-BE-stl-reading branch from 31e203b to 8c8d0df Compare October 1, 2017 11:38
@hyperair
Copy link
Contributor Author

hyperair commented Oct 1, 2017

@hroncok It's green now.

@hroncok
Copy link
Member

hroncok commented Oct 1, 2017

Great job! Do you need this to be included in the 0.98.x series, or merging to master and released "when ready" is fine?

@hroncok hroncok self-requested a review October 1, 2017 12:37
@hyperair
Copy link
Contributor Author

hyperair commented Oct 1, 2017 via email

hyperair added a commit to hyperair/Slic3r that referenced this pull request Oct 1, 2017
Partially revert 2085a48. This is in
preparation for applying the upstream fix from admesh at
admesh/admesh#26
hyperair added a commit to hyperair/Slic3r that referenced this pull request Oct 1, 2017
hyperair added a commit to hyperair/Slic3r that referenced this pull request Oct 1, 2017
lordofhyphens pushed a commit to slic3r/Slic3r that referenced this pull request Oct 1, 2017
@evansque
Copy link

Nice going @hyperair
@hroncok will this be merged anytime soon?

@hroncok
Copy link
Member

hroncok commented Apr 12, 2018

This has slipped from my radar. I'll merge today.

@hroncok hroncok merged commit 64e86ea into admesh:master Apr 12, 2018
@hroncok
Copy link
Member

hroncok commented Apr 12, 2018

Let's keep this in master for a while before it's merged to 0.98.x.

hroncok pushed a commit to hroncok/admesh that referenced this pull request Oct 12, 2019
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.

3 participants