POV-Ray : Newsgroups : povray.newusers : Mixed array : Re: Mixed array Server Time
7 Jul 2026 14:12:28 EDT (-0400)
  Re: Mixed array  
From: jr
Date: 3 Jul 2026 16:10:00
Message: <web.6a4816b0208027db22ad5b506cde94f1@news.povray.org>
hi,

kurtz le pirate <kur### [at] freefr> wrote:
> With this :
> #declare Datas = array mixed;
> #declare Datas[0] = <1,2,3>;
> #declare Datas[1] = <1,2,3,4>;
> #declare Datas[2] = <1,2>;
>
> how can you tell that the vector in Datas[0] has 3 components and the
> vector in Datas[1] 4 ?

in a word, you/we cannot.


> So far, I haven't found anything online about this. So a little help
> would be appreciated ;)

iirc, both Bald Eagle and WFP have partial solutions.  (no refs, sorry)

if only 2/3/4 vector data is stored, you could combine vector and #components in
a 5-vector ?


regards, jr.


Post a reply to this message

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