|TGRCDev dadb41aacf||2 months ago|
|README.md||2 months ago|
|binary.png||2 months ago|
|bourke-to-binary.py||2 months ago|
|bourke.png||2 months ago|
|edgeTable.dat||2 months ago|
|triTable.dat||2 months ago|
A small python script to convert Paul Bourke's edgeTable and triTable to use my preferred binary indexing order.
Vertices are ordered in a way such that each bit in the index corresponds to an axis
4 2 1 z y x
Edges still use a clockwise format, but start on the -Z side for horizontal edges, and -X -Z for the vertical edges
Triangles are also reversed to interpret the scalar value as "density", rather than "distance from surface". A point with value -1.0 is outside of the surface, while a point with value 1.0 is inside of the surface.