|
|
Ref: http://wiki.povray.org/content/Reference:Array
Imo the mixed option needs a little example,
#declare MyArray = array[10];
#declare MyArray[5] = pigment{White}; //all other elements must
//be pigments too.
#declare MyArray[2] = normal{bumps 0.2}; //generates an error
#declare Thing = MyArray[4]; //error: uninitialized array
element
#declare MyMixedArray = array mixed[10];
#declare MyMixedArray[5] = pigment{White};
#declare MyMixedArray[2] = <1,2,3>;
#declare SphereMix = array mixed[3]{<1,2,3>, 3, pigment{z}};
sphere{
SphereMix[0], SphereMix[1]
texture{Spheremix[2]}
}
ingo
Post a reply to this message
|
|