|
 |
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmail com> wrote:
> I think it would be better if your Matlab code created the arrays
> containing the vectors directly, like this:
>
> #declare VV =
> array[N][3] {
> { <3.43, 7.67, 1.83>, <3.76, 7.67, 1.63>, <3.76, 8.00, 1.13> },
> ...
> }
> ;
> #declare NN =
> array[N][3] {
> { <0.32, 0.72, 0.62>, <0.36, 0.74, 0.56>, <0.37, 0.78, 0.51> },
> ...
> }
> ;
> #declare Colors =
> array[N][3] {
> { <0.43, 1.00, 0.00>, <0.48, 1.00, 0.00>, <0.62, 1.00, 0.00> },
> ...
> }
> ;
I would go one step further, and put them all into the same array, although
that's not strictly necessary. I'm just thinking about juggling all of the
data in a macro, and having a single array name would make it easier, but not
really necessary.
But also, depending on what other people might want to do with the data, if it
were a [N][9] array, then the ASCII format would lend itself to importing into a
spreadsheet and keeping all of that data together. It would also be together
in the ASCII SDL/inc file, so that it would be easy to read and think about,
rather than hunting through 3 arrays. Making it a [N][10] array would allow
numbering of the vertices as well, and for the same easy-reading purpose.
Post a reply to this message
|
 |