POV-Ray : Newsgroups : povray.programming : Parsing a POV-Ray file : Re: Parsing a POV-Ray file Server Time
1 Jun 2024 21:07:51 EDT (-0400)
  Re: Parsing a POV-Ray file  
From: nomail
Date: 22 Jan 2007 15:20:00
Message: <web.45b51b644ff92f74d7330c3b0@news.povray.org>
"slinky" <gwj### [at] uiucedu> wrote:
> Are there any tools/libraries to use if we don't want to write our own
> parser? There seems to be a LOT of interest in having a parser which will
> read *.pov
> files into C or C++ objects so that the objects can be rendered by something
> other than povray. The scene description language just forms a convenient
> format. For instance, the source code for POV-ray MUST have code which
> parses
> *.pov files into 3D data, and materials definitions/etc. I've been looking
> through this code with the intent of re-using it to do exactly what you are
> talking about. I've found the code that tokenizes the pov file, but not the
> code that takes these tokens and assigns spatial information/materials/etc.

If you have not found it, given it is in a file named "parse.cpp", you
should seriously ask yourself if you are up to the task at all...


Post a reply to this message

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