|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:web.5bfd56506924cc99783c249c0@news.povray.org jr wrote:
> if you write:
> [...]
Thanks. Thats what I started with, but read somewhere the [2] can be
omitted for one dimensional arrays,
ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
ingo <ing### [at] tagpovrayorg> wrote:
> in news:web.5bfd56506924cc99783c249c0@news.povray.org jr wrote:
>
> > if you write:
> > [...]
>
> Thanks. Thats what I started with, but read somewhere the [2] can be
> omitted for one dimensional arrays,
yes, a new feature. I think though that such arrays cannot be initialised where
they're declared (clipka?).
fwiw, I used such arrays in 'queues.inc', have a look (posted in
text.scene-files, on Nov 6th).
regards, jr.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 25.11.2018 um 17:13 schrieb ingo:
> Probably completely misread the docs on the previous one.
Indeed. Tuples are not a thing in POV-Ray. There is only a tuple-ish
syntax to assign multiple variables at the same time.
> The following parses forever:
That's pretty much the worst of all outcomes. Guess I'll have to look
into this.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 27.11.2018 um 15:36 schrieb jr:
> if you write:
>
> #declare bone = dictionary {
> ["face"] : array [2] {fig["head"], fig["nose"]},
> ["neck"] : array [2] {fig["head"], fig["atlas"]},
> ["spine"] : array [2] {fig["atlas"], fig["tail"]}
> }
>
> it'll work.
Thanks for that find. It'll help narrow down the issue more quickly.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 27.11.2018 um 23:27 schrieb ingo:
> in news:web.5bfd56506924cc99783c249c0@news.povray.org jr wrote:
>
>> if you write:
>> [...]
>
> Thanks. Thats what I started with, but read somewhere the [2] can be
> omitted for one dimensional arrays,
Note that this isn't just a matter of convenience - the resulting arrays
will behave differently, with the "non-sized" array being able to grow
dynamically. The downside of such dynamically-sized arrays is that they
require more memory.
So whenever you know the size of the array in advance, omitting it is
bad practice.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Apparently the dynamically-sized array doesn't like to have an initializer.
So this also enters an infinite loop:
#declare Foo = array { 42, 4711 };
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 28.11.2018 um 15:26 schrieb clipka:
> Apparently the dynamically-sized array doesn't like to have an initializer.
Should be fixed now.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"jr" <cre### [at] gmailcom> wrote:
> fwiw, I used such arrays in 'queues.inc', have a look (posted in
> text.scene-files, on Nov 6th).
Hi jr,
I've only had a brief look through your sorting macros (many thanks).
You seem to be fluent with the dictionary syntax and usage.
I don't really have much of an understanding of these.
At some point, do you think it would be possible for you to write a pov file
with some illuminating comments and run the dictionaries through their paces?
Sort of a "here's the basics", followed by: "and if you want to get fancy, just
look what you can do...!"
It might save me 20 or 30 humbling posts. ;)
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > fwiw, I used such arrays in 'queues.inc', have a look (posted in
> > text.scene-files, on Nov 6th).
> Hi jr,
> I've only had a brief look through your sorting macros (many thanks).
> You seem to be fluent with the dictionary syntax and usage.
too much credit.
> At some point, do you think it would be possible for you to write a pov file
> with some illuminating comments and run the dictionaries through their paces?
> Sort of a "here's the basics", followed by: "and if you want to get fancy, just
> look what you can do...!"
> It might save me 20 or 30 humbling posts. ;)
I'm not very creative, how about a collaboration? suggest one of your
scenes/WIPs where one or more queues might be "handy", or simply something where
the use of dictionaries is of use to you. I'll be happy to work it through with
you. what say you? ;-)
regards, jr.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:5bfec8d5$1@news.povray.org clipka wrote:
> Am 28.11.2018 um 15:26 schrieb clipka:
>> Apparently the dynamically-sized array doesn't like to have an
>> initializer.
>
> Should be fixed now.
>
Nice. Thanks,
ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |