POV-Ray : Newsgroups : povray.programming : Parsing a POV-Ray file : Re: Parsing a POV-Ray file Server Time
1 Jun 2024 23:26:51 EDT (-0400)
  Re: Parsing a POV-Ray file  
From: slinky
Date: 24 Jan 2007 11:00:01
Message: <web.45b782204ff92f74ceb5817b0@news.povray.org>
"nomail" <nomail@nomail> wrote:
> "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...
You are assuming that parse.cpp does what I call "useful". I should have
been more clear about what I wanted.


Post a reply to this message

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