icosahedron/output/icosahedron_r1_d0.json
Tyler Hallada e0fc3c1917 Finally generating correct normals
Have to detect and correct inverted normals during calculation since the winding
order of the generated truncated icosahedrons is inconsistent.
2019-06-19 00:07:53 -04:00

1 line
888 B
JSON

{"positions":[[-0.8506508,0.0,0.5257311],[0.0,0.5257311,0.8506508],[-0.5257311,0.8506508,0.0],[0.5257311,0.8506508,0.0],[0.0,0.5257311,-0.8506508],[-0.8506508,0.0,-0.5257311],[0.8506508,0.0,0.5257311],[0.0,-0.5257311,0.8506508],[-0.5257311,-0.8506508,0.0],[0.0,-0.5257311,-0.8506508],[0.8506508,0.0,-0.5257311],[0.5257311,-0.8506508,0.0]],"cells":[[0,1,2],[1,3,2],[3,4,2],[4,5,2],[5,0,2],[1,6,3],[0,7,1],[5,8,0],[4,9,5],[3,10,4],[6,7,11],[7,8,11],[8,9,11],[9,10,11],[10,6,11],[6,1,7],[7,0,8],[8,5,9],[9,4,10],[10,3,6]],"normals":[[-0.85065085,0.0,0.52573115],[0.0,0.52573115,0.85065085],[-0.52573115,0.85065085,0.0],[0.52573115,0.85065085,0.0],[0.0,0.52573115,-0.85065085],[-0.85065085,0.0,-0.52573115],[0.85065085,0.0,0.52573115],[0.0,-0.52573115,0.85065085],[-0.5257311,-0.8506508,0.0],[0.0,-0.52573115,-0.85065085],[0.85065085,0.0,-0.52573115],[0.52573115,-0.85065085,0.0]],"faces":[]}