POV-Ray : Newsgroups : povray.unofficial.patches : contained_by : Re: contained_by Server Time
2 Sep 2024 06:19:18 EDT (-0400)
  Re: contained_by  
From: Bob Hughes
Date: 26 Apr 2000 12:01:48
Message: <390712ec@news.povray.org>
It may be one of those quirky sort of things, like which math is done
first.  I.e.  x+y*z or z*y+x or x+(y*z) or...  Didn't mean to make math out to
be folly by saying that, sorry  :-)
Anyway, I've seen it someplace that it's a good idea to do a box thusly:
-4,4 instead of 4,-4 so that the lower values are put first.  Either that or
I'm dreaming it up.  Why such a thing would cause a break in it I haven't a clue.

Bob

"Sigmund Kyrre Aas" <as### [at] studntnuno> wrote in message
news:3906B42E.4034540E@stud.ntnu.no...
| Not that it matters all that much..
|
| Why do I get a surface here:
|
| isosurface {
|   function {sqr(x)+sqr(z)-sqr(y)}
|   contained_by { box { -4,<4,0,4> } }
|   pigment {rgb y}
| }
|
| but not here:
|
| isosurface {
|   function {sqr(x)+sqr(z)-sqr(y)}
|   contained_by { box { <4,0,4>,-4 } }
|   pigment {rgb y}
| }
|


Post a reply to this message

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