MaskedRetriever / SuperSkein

Open Source 3D Mesh Slicer in Processing: Generates gcode from stl files.
http://www.thingiverse.com/thing:3649
GNU General Public License v3.0
70 stars 11 forks source link

Errors when loading Binary STL #23

Closed misan closed 10 years ago

misan commented 10 years ago

It seems there is a binary to IEEE 754 conversion problem. bin_to_float does not work ok,

misan commented 10 years ago

My solution is to replace bin_to_float by

   Tri[i]=Float.intBitsToFloat( b[offs] &0xff | (b[offs+1]<<8)&0xff00 | (b[offs+2]<<16)&0xff0000 | (b[offs+3]<<24)&0xff000000);