Hugo Asm wrote:
>
> [...]
>
> Convinced? :o)
>
No. You say you need to convert mesh data into a form that POV-Ray can
read as arrays and the only solution should be to modify POV-Ray?
If your mesh2 file is always in the same basic form (i.e. line breaks at
the same positions etc.) a short sed script should be sufficient to
convert it into a set of arrays.
In most cases the compressed mesh (pcm) toolkit:
http://www.geocities.com/SiliconValley/Lakes/1434/pcm.html
should also work for this purpose (although it does not support all mesh2
features IIRC).
Both solutions are very fast and the former is quite easily to adapt to
any special requirements in addition - in one word they are very user
friendly. Reading a mesh2 file through individual strings with an SDL
program on the other hand would be extremely slow.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______
Post a reply to this message
|