POV-Ray : Newsgroups : povray.general : gravity well : Re: gravity well Server Time
5 May 2024 00:39:06 EDT (-0400)
  Re: gravity well  
From: alphaQuad
Date: 11 Oct 2007 15:35:00
Message: <web.470e7a8850ab97d7e52dcb710@news.povray.org>
"Grassblade" <nomail@nomail> wrote:

> Because he forgot parentheses. That expression simplifies to x*x-0.002+z*z,
> which is a circle for every y, so a cylinder. Try x*x-0.002/(y*y)+z*z

GREAT!!!!!!!!!!!!! renders 2 reversed wells

but it wont let me intersection or difference out one half
and keeps whining about the function line:

starts rendering then half way thru error is:

Parse Error: Floating-point exception detected in function ''. Your function
either attempted a division by zero, used a function outside its domain or
called an internal function with invalid parameters.
difference {

 isosurface {
    function { (x*x) - (0.005/(y*y)) + (z*z) }
   threshold 0
 max_gradient 9
 contained_by {box {<-1,-1,-1>, < 1, 1, 1>}}
 open
    texture {
    pigment{ CadetBlue }
    finish { ambient .4 }
    }
    scale 6
    translate <0,0, 0>
}
box {<-1,-1,-1>, < 1, 1, 1>
      scale 2
      translate < 0, -2, 0>
   }
}



what should one do here?


Post a reply to this message

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