POV-Ray : Newsgroups : povray.bugreports : initialise array from csv file : initialise array from csv file Server Time
21 Jul 2024 06:59:14 EDT (-0400)
  initialise array from csv file  
From: jr
Date: 5 Sep 2021 07:40:00
Message: <web.6134ab6b41a27e515e0fed26cde94f1@news.povray.org>

I am trying to initialise an array via an '#include', as described in clipka's
message <http://news.povray.org/52dab911%40news.povray.org>.  but, no dice with
the three versions I tried: v3.8 alpha.9945627 and beta.2, and v3.7.0.8.

the test data:
$ cat tst.csv

in the scene I use:

#declare arr_ = array [16] { #include "tst.csv" };

I get two different error messages, v3.7.0.8: "Parse Error: Insufficent number
of initializers".  and for the v3.8 POV-Ray's: "Parse Error: Expected 'array
initializer element', # found instead".

regards, jr.

Post a reply to this message

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