|
|
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
|
|
|
|
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
|
|
|
|
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
|
|