repsnapper
repsnapper copied to clipboard
Reading of binary files on powerpc fails
When reading a binary STL file, the program crashes with a std::length_error which is caused by the number of triangles being wrongly read from the binary STL file. I suspect that this is a MSB vs LSB issue.
Textual STL files work fine, by the way.
Try this
https://github.com/epatel/repsnapper/commit/4fccc70cc979c8d4bc6efd0f7b601c9b6cecfe2d
Awesome! Will try it once I get my hands on a powerpc again :)
I changed the ppc ifdef into BIG_ENDIAN, and then it worked. thanks :) maybe do a pull request to tim to get this into the mainline.