POV-Ray : Newsgroups : povray.general : Flatten n-dimension array? : Flatten n-dimension array? Server Time
29 Jul 2024 10:30:24 EDT (-0400)
  Flatten n-dimension array?  
From: [GDS|Entropy]
Date: 18 Oct 2011 09:00:01
Message: <web.4e9d76d82fef771f77e50e540@news.povray.org>
Is there a way in SDL to flatten an n-dimensional array?

Everything I've tried so far seems to require knowing the array size in advance
and accessing specifically: flat[foo] = array[x][y]

It looks like the only way to make a method which can take an array as input and
flatten it will need to have a switch statement in it to fork to appropriately
deep loops. I don't like that though.

Any other options?

Thanks,
Ian


Post a reply to this message

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