POV-Ray : Newsgroups : povray.documentation.inbuilt : 3.8 array mixed : Re: 3.8 array mixed Server Time
16 Apr 2024 12:53:15 EDT (-0400)
  Re: 3.8 array mixed  
From: Jim Holsenback
Date: 7 Dec 2018 06:42:37
Message: <5c0a5cad$1@news.povray.org>
On 12/6/18 4:54 AM, ingo wrote:
> 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
> 

clarification please ... i see something already in the Additional usage 
examples are as follows: passage at the bottom of this section.


Post a reply to this message

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