POV-Ray : Newsgroups : povray.binaries.images : Problem with f_rounded_box function : Re: Problem with f_rounded_box function Server Time
17 May 2024 07:39:53 EDT (-0400)
  Re: Problem with f_rounded_box function  
From: Christoph Hormann
Date: 12 Mar 2006 17:35:02
Message: <dv27jm$bsr$1@chho.imagico.de>
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

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