MeasureSurface writes corrupted STL files
rimadoma opened this issue · comments
rimadoma commented
The plugin writes corrupted files because the record for each triangle is two bytes too long (is 50 bytes, should be 48 bytes). Namely the line bb.putShort((short) 0);
should be taken out of the loop. You write the UINT16 – Attribute byte count
once to the end of the file after all the triangles have been processed.
rimadoma commented
Whoops my bad, read documentation carelessly