POV-Ray : Newsgroups : povray.binaries.images : pfeh : Re: pfeh Server Time
7 Nov 2024 15:33:13 EST (-0500)
  Re: pfeh  
From: ElProfesor
Date: 17 Jul 2004 03:40:01
Message: <web.40f8d73fb30922d9265dc100@news.povray.org>
>   function{
>     pow ( pow(abs(x),Power)
>          +pow(abs(y),Power)
>          +pow(abs(z),Power) , 1/Power ) - Size
>     }


You could also try with superellipsoids; the sphere is a particular one (e =
n = 1, e and n being the parameters stated in the docs) and my guess is
that the cube is a limit one (e = n -> +oo should make it). The advantages
are that of using a built-in object and not having to provide a
max_gradient.
The equation it yields differs slightly from yours, though the extreme
shapes should be the same. Would be interesting to compare the intermediate
shapes it goes through!


Post a reply to this message

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