POV-Ray : Newsgroups : povray.programming : Extending the #read directive : Re: Extending the #read directive Server Time
18 May 2024 06:49:05 EDT (-0400)
  Re: Extending the #read directive  
From: Christoph Hormann
Date: 8 May 2003 10:01:46
Message: <3EBA634A.12D567E6@gmx.de>
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

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