POV-Ray : Newsgroups : povray.newusers : isosurfaces? : Re: isosurfaces? Server Time
31 Jul 2024 00:30:31 EDT (-0400)
  Re: isosurfaces?  
From: Tom Melly
Date: 4 Nov 2003 07:58:15
Message: <3fa7a267$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3fa7a09a@news.povray.org...
> Christoph Hormann <chr### [at] gmxde> wrote:
> > Actually you should use sqrt() instead of pow(,0.5).
>
>   How about simply squaring the radius (R*R) instead of using the slow
> sqrt() function?-)

He's got a point.... in which case it would make sense to declare R as the
square of whatever value you want to use?

So, Chris's example becomes:

#declare R=2*2;
#declare FSphere=function {(x*x+y*y+z*z) - R}


Post a reply to this message

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