POV-Ray : Newsgroups : povray.newusers : difference Server Time
31 Jul 2024 00:27:07 EDT (-0400)
  difference (Message 1 to 3 of 3)  
From: Bob
Subject: difference
Date: 19 Jun 2003 15:45:31
Message: <3ef212db@news.povray.org>
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


Post a reply to this message

From: gonzo
Subject: Re: difference
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

From: Bob
Subject: Re: difference
Date: 20 Jun 2003 00:22:04
Message: <3ef28bec@news.povray.org>
Ignore that last message :-/ I was changing the wrong point


Post a reply to this message

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