Not Logged In

stlsort 0.0.3

Some tools such as OpenSCAD produce randomly ordered STL files so source control like git can’t tell if they have changed or not.
This tool orders each triangle to start with the lowest vertex first (comparing x, then y, then z).
It then sorts the triangles to start with the one with the lowest vertices first (comparing first vertex, second, then third).
This has no effect on the model but makes the STL consistent. I.e. it makes a canonical form.