POV-Ray : Newsgroups : povray.beta-test : tuple in dict : Re: tuple in dict Server Time
23 Apr 2024 05:03:20 EDT (-0400)
  Re: tuple in dict  
From: jr
Date: 27 Nov 2018 09:40:00
Message: <web.5bfd56506924cc99783c249c0@news.povray.org>
hi,

ingo <ing### [at] tagpovrayorg> wrote:
> The following parses forever:
>
> #declare fig = dictionary {
>   ["head"]  : <0, 0, 0>,
>   ["nose"]  : <1, 0, 0>,
>   ["atlas"] : <0,-1, 0>,
>   ["tail"]  : <0,-3, 0>
> }
>
>
> #declare bone = dictionary {
>   ["face"]  : array{fig["head"], fig["nose"]},
>   ["neck"]  : array{fig["head"], fig["atlas"]},
>   ["spine"] : array{fig["atlas"], fig["tail"]}
> }
>
> ingo

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.


regards, jr.


Post a reply to this message

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