bonej-org / bonej

BoneJ 1.x releases. For up-to-date code see https://github.com/bonej-org/BoneJ2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MeasureSurface writes corrupted STL files

rimadoma opened this issue · comments

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.

Whoops my bad, read documentation carelessly