anoved / libtrix

A rudimentary C library for generating STL files from triangle lists and vice versa.
MIT License
5 stars 3 forks source link

Binary stl endianness #1

Open anoved opened 10 years ago

anoved commented 10 years ago

The binary STL format expects values to be stored little endian. On a little endian intel machine, this happens implicitly on fwrite(). However, not all systems are little endian. The lib should do the right thing (swapping bytes if necessary) for the host system. Include tests.

anoved commented 10 years ago

Yur