POV-Ray : Newsgroups : povray.unofficial.patches : contained_by Server Time
1 Nov 2024 23:14:16 EDT (-0400)
  contained_by (Message 1 to 6 of 6)  
From: Sigmund Kyrre Aas
Subject: contained_by
Date: 26 Apr 2000 05:20:58
Message: <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

From: TonyB
Subject: Re: contained_by
Date: 26 Apr 2000 11:18:58
Message: <390708e2@news.povray.org>
I've asked myself that question many times. It's always been like that.


Post a reply to this message

From: Mr  Art
Subject: Re: contained_by
Date: 26 Apr 2000 11:55:24
Message: <39071186.ABCA5EB3@gci.net>
It is just an old convention for describing a box (box{max,min}).
And it seems to have been with us forever. But lets give this 
description a try: box { <4,0,4>,-4 }= a box that has
no size in this universe (max. is less then min) but might have
some volume in a non-POVian universe.

Sigmund Kyrre Aas wrote:
> 
> 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

From: Bob Hughes
Subject: Re: contained_by
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

From: Sigmund Kyrre Aas
Subject: Re: contained_by
Date: 26 Apr 2000 13:54:44
Message: <39072D63.B59FD909@stud.ntnu.no>
"Mr. Art" wrote:
> 
> It is just an old convention for describing a box (box{max,min}).
> And it seems to have been with us forever. But lets give this
> description a try: box { <4,0,4>,-4 }= a box that has
> no size in this universe (max. is less then min) but might have
> some volume in a non-POVian universe.

You probably meant box{ -4,<4,0,4> }. Similar to spheres with negative radius I
guess. Strange then that both regular boxes and clipped_by boxes work fine.

sig.


Post a reply to this message

From: Warp
Subject: Re: contained_by
Date: 27 Apr 2000 08:47:02
Message: <390836c5@news.povray.org>
Why don't just swap the offending coordinates at parse time as needed?
I think that the box primitive does that.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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