After several months, I finally found a solution for reducing the
parsing time when calculating normals for smooth triangles. With
Melody's original macro, generating a mesh2 of 3601 by 3601 points from
ASTER terrain data tiles would take about 170 trillion (!!!) iterations
resulting in 200 days of render time, as the macro just scans the whole
array of vertices by a nested loop...
...instead, my solution takes the constant patterns of adjacent vertices
for corner, edge and central points of the mesh2 into account, thus
reducing parsing time to a mere 2 hours (on an AMD FX-62000 with 24 GiB
Here it is!
See you in Khyberspace!
Post a reply to this message
Download 'mesh2writer.pov.txt' (9 KB)