|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Is this the only way to set a default value?
#declare numBuildings=12;
#declare contatore=0;
#declare noRender=array[numBuildings];
#while (contatore<numBuildings)
#declare noRender[contatore]=1;
#declare contatore=contatore+1;
#end
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
danyolgiax <d.o### [at] gmailcom> wrote:
> Is this the only way to set a default value?
Yeah.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"danyolgiax" <d.o### [at] gmailcom> wrote in message
news:web.445a5ff0bea7939358dbbb6b0@news.povray.org...
> Is this the only way to set a default value?
>
> #declare numBuildings=12;
> #declare contatore=0;
> #declare noRender=array[numBuildings];
>
> #while (contatore<numBuildings)
>
> #declare noRender[contatore]=1;
> #declare contatore=contatore+1;
>
> #end
>
or
#declare noRender=array[numBuildings] {1,1,1,1,1,1,1,1,1,1,1,1};
This is good for small arrays, but can be tedious for large arrays.
-tgq
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Trevor G Quayle <Tin### [at] hotmailcom> wrote:
> #declare noRender=array[numBuildings] {1,1,1,1,1,1,1,1,1,1,1,1};
That doesn't work if numBuildings changes.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|