POV-Ray : Newsgroups : povray.unofficial.patches : Mega not like reading arrays Server Time
1 Nov 2024 23:15:49 EDT (-0400)
  Mega not like reading arrays (Message 1 to 2 of 2)  
From: Greg M  Johnson
Subject: Mega not like reading arrays
Date: 29 Apr 2000 20:14:24
Message: <390b7ae0@news.povray.org>
With pov 31g I had very often successfully read an INC which starts like
this:

#declare position=array[99][25][6] {
{ {-2.37927,1.17776,-121.587,-20.7371,-1.02968,2.86862},
{3.97119,4.17336,-129.134,-15.9236,3.57336,-0.402825},
{0.278849,5.67698,-121.573,-17.3276,2.93009,1.9791},
{3.76295,5.82455,-121.233,-18.2802,1.04942,2.25706},
{-0.975085,5.32031,-121.031,-21.782,4.26011,3.93571},

etc.

I had a bunch of files that worked fine writing and reading these inc's
w/ 31g.
Now with 0.4, I can write but haven't figured out the new syntax
required to read. Using the same old syntax, I can write fine with 0.4
but have to read it backin 31g.

The error message is something like:

"undeclared variable expected but position found."

Huh?


Post a reply to this message

From: Ken
Subject: Re: Mega not like reading arrays
Date: 29 Apr 2000 20:36:15
Message: <390B7DAF.DDD7A314@pacbell.net>
"Greg M. Johnson" wrote:

> The error message is something like:
> 
> "undeclared variable expected but position found."

The word "postition" might be a reserved keyword in MegaPov. Try
using a capital "P" in "Position" and see if that fixes the problem.

To avoid these conflicts in the future you should always start a
#declared name with a capitol letter since the POV-Team and patch
writers always use uncapitalized reserved keywords for the programs
operations.


-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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