POV-Ray : Newsgroups : povray.binaries.images : Isosurface approximation : Isosurface approximation Server Time
1 Aug 2024 10:20:10 EDT (-0400)
  Isosurface approximation  
From: Kevin Loney
Date: 9 Apr 2003 01:40:54
Message: <3e93b266@news.povray.org>
Just fiddling around with methods to approximate isos using triangle meshs
based on the algorithm described here
http://astronomy.swin.edu.au/~pbourke/modelling/polytetra/, 27s to render 9m
27s to parse using 40 segments along each axis, and 68124 triangles in
total. I'm bundling it all up into an include file, I would image given the
ability to save the mesh so it dosen't have to be reproduced every time
would make it handy for test renders of scenes that are heavy with isos.
Mind you, there is only a noticable speed increase when using complex
functions,
I rendered the iso f(x,y,z) = cos(2*pi*x) + cos(2*pi*y) + cos(2*pi*z) and it
took the same amount of time as the mesh (27s).

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg"
,r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4
pigment{rgb 10}}_(r+1)#end#end _(1)//KL


Post a reply to this message


Attachments:
Download 'field.jpg' (85 KB)

Preview of image 'field.jpg'
field.jpg


 

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