POV-Ray : Newsgroups : povray.general : povray #read fails with "0" : Re: povray #read fails with "0" Server Time
6 Oct 2024 09:41:42 EDT (-0400)
  Re: povray #read fails with "0"  
From: clipka
Date: 28 Jan 2014 12:48:04
Message: <52e7ed54@news.povray.org>
Am 28.01.2014 15:45, schrieb gregjohn:
>
> I was reading a CSV file successfully until povray ran into the next to  last
> line below. (There were dozens of lines before it which were read successfully
> as well, dozens after of similar format to the last line. )
>
>
>
>
> -0.126,-2.53681E-06,49668.6783795397
> -0.108,-2.14271E-06,50403.4610376579
> -0.09,-1.77115E-06,50814.442593795
> -0.072,-1.42709E-06,50452.3190548599
> -0.054,-1.05761E-06,51058.5187356398
> -0.036,-6.98572E-07,51533.7001769324
> -0.018,-3.47316E-07,51826.0028331548
> 0,-1.8643E-09,0
> 0.018,3.49041E-07,51569.8728802634

Using #read, POV-Ray interprets this as:

...
   -1.42709E-06, 50452.3190548599 - 0.054,
   -1.05761E-06, 51058.5187356398 - 0.036,
   -6.98572E-07, 51533.7001769324 - 0.018,
   -3.47316E-07, 51826.0028331548   0,
   -1.8643E-09,                 0   0.018,
    3.49041E-07, 51569.8728802634

And yes, it /does/ compute the differences.

To my knowledge you could even use variable names in there, or functions.


Post a reply to this message

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