POV-Ray : Newsgroups : povray.newusers : isosurfaces? : Re: isosurfaces? Server Time
31 Jul 2024 00:32:09 EDT (-0400)
  Re: isosurfaces?  
From: Christoph Hormann
Date: 4 Nov 2003 12:32:03
Message: <p94l71-s2l.ln1@triton.imagico.de>
Warp wrote:
> 
>   How about simply squaring the radius (R*R) instead of using the slow
> sqrt() function?-)

Because that function would have a non-constant gradient.  With the (way 
too large) container box{-5,5} you need quite a high max_gradient to 
correctly render it -> it will be slower than with sqrt().

Of course using the internal function f_sphere() would be even faster.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 25 Oct. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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