POV-Ray : Newsgroups : povray.newusers : difference : Re: difference Server Time
4 Nov 2024 17:36:15 EST (-0500)
  Re: difference  
From: gonzo
Date: 19 Jun 2003 16:45:01
Message: <web.3ef21fc34c3c6cf0a0c272b50@news.povray.org>
Bob wrote:
>difference {
>        box {
>                <-10, 0, -10>  // one corner position <X1 Y1 Z1>
>                < 10,  20,  10>  // other corner position <X2 Y2 Z2>
>                pigment { color rgb <1,0,0> }
>        }
>
>        union {
>                box {
>                        <-9,0, -9>
>                        <9,19,9>
>                        pigment {color rgb <1,0,0> }
>                }
>
>                box {
>                        <-2.5,0,-10>
>                        <2.5,5,-5>
>                        pigment {color rgb <1,0,0> }
>                }
>       }
>}
>
>
>Somebody tell me what I'm doing wrong there, or somehow to get the second
>box to subtract as well
>

What are you trying to do?

The first box appears to almost entirely enclose the union except for the -z
edge of the last box which is the same as the first (look up "co-incident
surfaces), so a visible result should be either non-existent or else
generate artifacts.

If you're trying to make the first box hollow with a door (I *think* that's
your intent...) then try on the last box using <-2.5,0,-10.1> as the back
corner.

RG


Post a reply to this message

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