POV-Ray : Newsgroups : povray.general : input/output file : Re: input/output file Server Time
30 Jul 2024 04:12:52 EDT (-0400)
  Re: input/output file  
From: addison merchut
Date: 5 Feb 2010 19:50:01
Message: <web.4b6cbc62e89cf16be5b492130@news.povray.org>
"addison.merchut" <add### [at] gmailcom> wrote:
> "esterichia" <est### [at] gmailcom> wrote:
> > "Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote:
> > > I think commas are missing in the write statement because they are needed to
> > > separate the written parameters in the file in order to be read correctly.
> > > Check that your input file has commas too between parameters
> >
> > Thank you, this works. It was my mistake.
> >
> > > Also you can
> > > simplify your define as you do not need the #if statement. Just write:
> > >
> > > #while (defined(inputfile))
> > >   #declare x1 = y1;
> > >   #declare x2 = y2;
> > >   #declare x3 = y3;
> > >   #read (inputfile, y1, y2, y3)
> > >   ....
> > >   ....
> > >   #write (outputfile, x1,", ", x2,", ", x3,",","\n")
> > >   ....
> > > #end
> >
> > > > I guess without the pre-read this will cause a parse error, as y1,y2,y3
> > > > will be undefined at this point.
> > >
> > > Aaah... yes, indeed. In this case that is required. But then, why not put
> > > the #read as the first line in the #while loop? Then the #if statement could
> > > be omitted.
> >
> > I need two points to draw the cylinder, that is the first time I have to read 2
> > points and then only one for each cycle.
> Esterichia-
>
> What is the range of data points you are having povray run through? Any idea how
> to make it run through a couple thousand points?
>
> -Thanks
> --Addison

Nevermind. Got it. My mistake.

-Addison


Post a reply to this message

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