POV-Ray : Newsgroups : povray.general : CSG troubles : Re: CSG troubles Server Time
30 Jul 2024 10:21:33 EDT (-0400)
  Re: CSG troubles  
From: stevenvh
Date: 9 Mar 2009 03:25:01
Message: <web.49b4c31eda4bf64fc0721a1d0@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "stevenvh" <nomail@nomail> wrote:
> >   difference { A  difference { B C } }
> >
> > will subtract B from A, but C will be added again.
>
> Thinking about it, you're right - partially. It will possibly not work as
> expected if C is a union, as it will be changed to a merge in the process.
>
>
> > I think my problem was that I tried to use 'inverse' and that IMO behaves oddly.
>
> Hm... didn't you put the "inverse" on the "door" box? Note that
>
>     difference { object{A} object{B} }
>
> is the same as
>
>     intersection { object{A} object{B inverse} }
>
> and not vice versa.

I wrote merge instead of intersection. Looks like

    intersection { object{A} object{B inverse} }

is the same as

    merge { object{A inverse} object{B} }

and that was what I didn't quite understand. My mistake.


Post a reply to this message

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