|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ignore that last message :-/ I was changing the wrong point
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|