"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
|