POV-Ray : Newsgroups : povray.unofficial.patches : read pov scene text from RAM instead of disk file : Re: read pov scene text from RAM instead of disk file Server Time
2 Dec 2022 20:31:29 EST (-0500)
  Re: read pov scene text from RAM instead of disk file  
From: LanuHum
Date: 23 Aug 2016 16:15:01
Message: <web.57bcadfb8c571ece7a3e03fe0@news.povray.org>
"Mr" <nomail@nomail> wrote:
> Hi!
> Is there a way for official pov or any other branch/patched verion, to read a
> pov scene from Python string in RAM...?
>
> (either directly or maybe using something like this?
> http://docs.python.org/3/library/io.html#io.StringIO  )
>
> Instead of having to write and read from the text file to disk, it would
> probably make my exporter much faster for small scenes.

It is not required. Required to render an external file instead ate
one-dimensional array of string variables.
char *povfile[] = {"#version", "3.7", "background","{","color"...and so on};

As the file can be written in one line, and the python can transmit the exact
same string.
Developers only need to specify how to count?
From a file or from a file.
Oh array in english is file? Your language does not even see the difference.
:)))))))
I see a simple desire


Post a reply to this message

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