POV-Ray : Newsgroups : povray.binaries.utilities : Opposite of Bounded/Clipped_by Vs. Triple Merge bug Server Time
26 Jun 2024 08:09:47 EDT (-0400)
  Opposite of Bounded/Clipped_by Vs. Triple Merge bug (Message 1 to 3 of 3)  
From: Eitan Tal
Subject: Opposite of Bounded/Clipped_by Vs. Triple Merge bug
Date: 22 Feb 2000 14:55:10
Message: <38B2E90D.64D26BD7@netvision.net.il>
I am looking for a transformation / CSG that is the opposite of bounded
/ clipped by.

for example, I have 2 boxes, (X dimension only, for example)

#declare Box1 = Box {<1>,<3>}
#declare Box2 = Box{<2>,<4>}

where 2-3 is the shared region, which I want to eliminate.

I can do merge {
object {Box1}
object {Box2}
}

and a triple object, that will contain the same place, might be box1,
box2,
box1 bounded by box2, box2 bounded by box1.

I can also do the same with difference

difference {
merge {object {box1} {object{box2}
object {box1/2 bounded_by {object {box2}}}
}

is there a function that does this operation or do I have to use these
two options?
does that triple merge bug exists in newer versions?


Post a reply to this message

From: Mark Wagner
Subject: Re: Opposite of Bounded/Clipped_by Vs. Triple Merge bug
Date: 24 Feb 2000 01:05:25
Message: <38b4ca25@news.povray.org>
Eitan Tal wrote in message <38B2E90D.64D26BD7@netvision.net.il>...
>I am looking for a transformation / CSG that is the opposite of bounded
>/ clipped by.
>
>for example, I have 2 boxes, (X dimension only, for example)
>
>#declare Box1 = Box {<1>,<3>}
>#declare Box2 = Box{<2>,<4>}
>
>where 2-3 is the shared region, which I want to eliminate.
>is there a function that does this operation or do I have to use these
>two options?


What you are looking for is a "symmetric difference" operation.  POV-Ray
does not have this.

Mark


Post a reply to this message

From: Chris Huff
Subject: Re: Opposite of Bounded/Clipped_by Vs. Triple Merge bug
Date: 24 Feb 2000 06:35:04
Message: <chrishuff_99-327AFA.06362824022000@news.povray.org>
In article <38b4ca25@news.povray.org>, "Mark Wagner" 
<mar### [at] gtenet> wrote:

> What you are looking for is a "symmetric difference" operation.  POV-Ray
> does not have this.

Not as a basic CSG operation, but I think this will do it...
difference {
    union {object {ObjA} object {ObjB}}
    intersection {object {ObjA} object {ObjB}}
}

Although I really don't see how this would be useful, except maybe as a 
part of another CSG operation or as a media container. Even with a 
transparent object, it should look almost the same as just using a union 
because of the surfaces left behind by the difference.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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