POV-Ray : Newsgroups : povray.documentation.inbuilt : 3.8 array mixed Server Time
19 Mar 2024 00:17:03 EDT (-0400)
  3.8 array mixed (Message 1 to 3 of 3)  
From: ingo
Subject: 3.8 array mixed
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

From: Jim Holsenback
Subject: Re: 3.8 array mixed
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

From: ingo
Subject: Re: 3.8 array mixed
Date: 7 Dec 2018 13:14:26
Message: <XnsA9B1C3B93D50Fseed7@news.povray.org>
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

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