POV-Ray : Newsgroups : povray.beta-test : isosurface bug : Re: isosurface bug Server Time
31 Jul 2024 08:25:21 EDT (-0400)
  Re: isosurface bug  
From: Nathan Kopp
Date: 5 Sep 2001 19:44:41
Message: <3b96b8e9$1@news.povray.org>
"Sigmund Kyrre Aas" <as### [at] studntnuno> wrote...

> #declare S=.4;  // setting this to less than .5 gives strange results
> #declare L=.5;  // setting this to 0 still produces artifacts

>     function { L*sqrt(cos(x/S)) + y^2+z^2 }

>     contained_by{box{-<.8,1,1>,<.8,1,1>}}

Please note that "cos(0.64 / 0.4)" is less than one.  This occurs well
within your contained_by box, which ranges from x=-0.8 to x=0.8.

Taking the square root of a negative number is not defined in real number
space.  This is the source of your problem.

-Nathan


Post a reply to this message

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