POV-Ray : Newsgroups : povray.newusers : Mixed array : Re: Mixed array Server Time
7 Jul 2026 12:57:03 EDT (-0400)
  Re: Mixed array  
From: Cousin Ricky
Date: 3 Jul 2026 20:02:01
Message: <6a484d79@news.povray.org>
On 2026-07-03 12:11 (-4), kurtz le pirate wrote:
> 
> #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 ?

I managed to figure something out for some special applications in two
of my libraries.  Have a look at macro Caption__Get_padding() in
caption.inc and macro Lamp_Has4D() in desklamp.inc and see if you can
generalize them.

  https://github.com/CousinRicky/POV-Caption/blob/main/caption.inc
  https://github.com/CousinRicky/POV-DeskLamp/blob/main/desklamp.inc


Post a reply to this message

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