POV-Ray : Newsgroups : povray.general : Broken "difference"? : Re: Broken "difference"? Server Time
16 Nov 2024 09:22:30 EST (-0500)
  Re: Broken "difference"?  
From: Ron Parker
Date: 28 Aug 1998 17:48:32
Message: <35e717a0.0@news.povray.org>
On Fri, 28 Aug 1998 14:14:13 -0600, NerveGas 
        <Ner### [at] see_signaturecom> wrote:
>  Union and merge both work as documented, but when I try a difference,
>I will get the entirety of one object, and nothing of the other, even
>though they do intersect.  Is it borken, or is there something that I
>just don't understand?

A little of both. Your boxes occupy the same space at the same time (the
"coincident surfaces" problem.)  POV traditionally has a hard time figuring
out what you want to do when this happens, because it needs to know which 
faces are "inside" the other box and which aren't, but one on the surface is
technically neither inside nor outside.  Try this:

difference{
           box{<-5.5,2.5,Thickness>,<-3.0,-4,0>
               pigment {color Silver}
               rotate 30*-z
               }
           box{
               <-4.5,1.5,Thickness+.001>,<0,-1.5,-.001>
               pigment {color Silver}
               }

         }


Post a reply to this message

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