POV-Ray : Newsgroups : povray.general : Linked Arrays : Linked Arrays Server Time
29 Jul 2024 14:13:09 EDT (-0400)
  Linked Arrays  
From: Leroy Whetstone
Date: 2 May 2011 14:35:37
Message: <4DBEF925.30905@joplin.com>
I've been playing around with arrays(ver 3.6). You know how POV 
handles arrays, one type of element per array. (float, vector, color, 
...)I do a lot of animation. So some times I have several arrays that 
are linked to one object. I usually made the arrays for each POV project 
and handled the arrays individually.
  I thought 'Why can't POV be more C++ like and use classes?' Well it 
can't! I won't complain It's one great rendering tool!
  But I can make a POV scrip that can produce a set of arrays that are 
linked by name and use macros that treat those arrays as one virtual 
array. I'm sure the idea isn't new.
  Before I give the completed version to the POV community. What macros 
would you like to be there?
  I have: Put, Get, Trade, Copy, Sort, so far.
   Put - Put values in virtual array
   Get - Get values from virtual array
   Trade - Trade one virtual array element with another
   Copy -  Copy  one virtual array element with another
   Sort -  This lets you choose an array to use to
           sort the rest of the virtual array. The
           array you chose must have float values in it.
           Final arrangement is from lowest to highest.
I'll put a copy of LinkMaker in P.B utilities
Your comments and suggestions are welcomed.


Post a reply to this message

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