|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
The code below gives the error:
no matching { in difference, box found instead
There must be something about declaring that I couldn't find in the doc.
Would some kind soul please explain why I get this error?
-----------------------------
#include "colors.inc"
#declare Dflgg = box {
<0, 0, 0>, <1, 1, .001>
pigment { color Red }
finish { ambient .8 }
scale <40, 24, 1>
}
difference
{
Dflgg
box
{
<0, 0, -1>, <1, 1, .002>
pigment { color Blue }
finish { ambient .8 }
}
}
-----------------------------
--
Alan
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
yan### [at] pacbellnet wrote:
>
> The code below gives the error:
> no matching { in difference, box found instead
>
> There must be something about declaring that I couldn't find in the doc.
> Would some kind soul please explain why I get this error?
>
> -----------------------------
> #include "colors.inc"
>
> #declare Dflgg = box {
> <0, 0, 0>, <1, 1, .001>
> pigment { color Red }
> finish { ambient .8 }
> scale <40, 24, 1>
> }
>
> difference
> {
> Dflgg
> box
> {
> <0, 0, -1>, <1, 1, .002>
> pigment { color Blue }
> finish { ambient .8 }
> }
> }
In the difference, say object { Dfflg } instead of just Dfflg. You
don't always need to do this, but it doesn't hurt and the habit will
save problems like this.
Jerry Anning
cle### [at] dholcom
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|