+
+ // Skip the rest of the buffer
+ file.read(75);
+
+ // Assume we're on a little-endian system for simplicity
+ uint32_t tri_count;
+ file.read(reinterpret_cast<char*>(&tri_count), sizeof(tri_count));
+
+ if (file.size() != 84 + tri_count*50)
+ {
+ emit error_bad_stl();
+ return;
+ }