|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:5c0a5cad$1@news.povray.org Jim Holsenback wrote:
> On 12/6/18 4:54 AM, ingo wrote:
>
> clarification please ... i see something already in the Additional
> usage examples are as follows: passage at the bottom of this section.
>
Jim,
The mixed example gets a bit lost down there, I think. Just above the
example I partly referenced the new option mixed is introduced so I
expexted an example right there.
ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|