POV-Ray : Newsgroups : povray.general : #read-question Server Time
4 Aug 2024 00:21:17 EDT (-0400)
  #read-question (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: JC (Exether)
Subject: Re: #read-question
Date: 4 Nov 2003 00:58:13
Message: <3fa73ff5$1@news.povray.org>
:-)
Yes, but then you have no #read problem, maybe just a #write problem and 
  you will use the great POV parser that will tell you what the problem is.

JC

Warp wrote:

> "JC (Exether)" <no### [at] spamfr> wrote:
> 
>>One good way of avoiding any such problem is to write data with the 
>>povray syntax, so that you can read it back with a simple #include
> 
> 
>   Well, if you write "<0,0,0)" to an include file and then #include it,
> an error will happen as well, so it isn't really a solution. ;)
>


Post a reply to this message

From: JC (Exether)
Subject: Re: #read-question
Date: 4 Nov 2003 01:03:15
Message: <3fa74123$1@news.povray.org>
> *SNIP*
> 
> Aside of the above, yup, it is nice to simply #include some stuff, but I've
> found in several cases that using the File I/O more like a database rather
> than a crude POV-Editor has some advantages: the code is more compact and,
> though I'm not sure of that, depending on how you use, say, an amount of 500
> Vectors (directly in an array or load them one after another as need) might
> use less memory, but some guru might know more about that (or tell me to
> experiment, which I can't do properly at the moment).

An array of 500 3D vectors takes about 12Kb (8*3*500 bytes), so you are 
right but it is mostly in extreme cases when you have enormous amounts 
of data and need to fine-tune memory usage that the #include method 
couldn't be used.

JC


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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