POV-Ray : Newsgroups : povray.documentation.inbuilt : 3.8 array mixed : 3.8 array mixed Server Time
29 Nov 2021 21:56:50 EST (-0500)
  3.8 array mixed  
From: ingo
Date: 6 Dec 2018 04:54:21
Message: <XnsA9B06EF145B7Cseed7@news.povray.org>
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

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