Sebastian H. wrote:
>>
>> Note the current f_rounded_box() is not a very efficient solution
>> anyway (you don't need an sqrt() for every evaluation).
>
> Actually I tried the following expression.
>
> return (PARAM_X * PARAM_X
> + PARAM_Y * PARAM_Y
> + PARAM_Z * PARAM_Z
> - PARAM(0)*PARAM(0));
>
That's not what i meant. You don't need the sqrt() on the faces of the
rounded cube - there a simple plane function is sufficient.
Christoph
--
POV-Ray tutorials, include files, Landscape of the week:
http://www.imagico.de/ (Last updated 31 Oct. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/
Post a reply to this message
|