|
|
Try this for simplest code :
// #declare CapColor= <1,0,0,0,0>;
#declare CapColor= color <1,0,0,0,0>;
#warning "Vector <" #warning str(CapColor.red ,0,4)
#warning ", " #warning str(CapColor.green ,0,4)
#warning ", " #warning str(CapColor.blue ,0,4)
#warning ", " #warning str(CapColor.filter ,0,4)
#warning ", " #warning str(CapColor.transmit,0,4)
#warning "> "
sphere{0,0 pigment{color 0}}// keeps the error messages away
uncomment one or the other of the #declare statements.
#declare CapColor= color <1,0,0,0,0>; gives correct results
#declare CapColor= <1,0,0,0,0>; doesn't
So the problem seems to be not in the #macro stuff at all
but in the assignment process.
"mr.art" wrote:
>
> Here is more data to ponder:
> #declare CapColor=<1,1,0,0>; outside the macro becomes <1,1,0,0> inside
> But
> #declare CapColor=<1,1,0,0,0>; becomes <0,1.875,0,1.875,0> inside
Post a reply to this message
|
|