You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
TGRCDev dadb41aacf Initial Commit 2 months ago
README.md Initial Commit 2 months ago
binary.png Initial Commit 2 months ago
bourke-to-binary.py Initial Commit 2 months ago
bourke.png Initial Commit 2 months ago
edgeTable.dat Initial Commit 2 months ago
triTable.dat Initial Commit 2 months ago

README.md

Bourke To Binary

A small python script to convert Paul Bourke's edgeTable and triTable to use my preferred binary indexing order.

Bourke's Clockwise Indices

Bourke indices

Binary-ordered Indices

Binary indices

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.