numpy-stl
numpy-stl copied to clipboard
AUTOMATIC mode does not work, if header is in ascii
An solidworks exported stl file contains a header in ascii and the mesh in binary mode. If the stl mesh gets imported (from_file method) with automatic mode, an exception is thrown. Workaround: manually set the mode to binary, with disadvantage to loose support for ascii files. Attached is the used sample file from solidworks: solidworks sample file.zip
I hadn't much time yet to deep dive into the source, but i assume the issue is somewhere in the bin/ascii detection. Thanks in advance