POV-Ray : Newsgroups : povray.general : Mesh rendering artifacts : Re: Mesh rendering artifacts Server Time
25 Apr 2024 19:21:17 EDT (-0400)
  Re: Mesh rendering artifacts  
From: Bald Eagle
Date: 1 Feb 2023 06:45:00
Message: <web.63da4fa6249f00761f9dae3025979125@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> 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

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