POV-Ray : Newsgroups : povray.text.scene-files : POVEarth: smooth mesh2 generator : POVEarth: smooth mesh2 generator Server Time
26 Feb 2024 16:15:52 EST (-0500)
  POVEarth: smooth mesh2 generator  
From: Jörg "Yadgar" Bleimann
Date: 1 Apr 2020 21:38:31
Message: <5e854217$1@news.povray.org>

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)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.