POV-Ray : Newsgroups : povray.general : Planar structures : Re: Planar structures Server Time
10 Dec 2024 06:38:04 EST (-0500)
  Re: Planar structures  
From: Bald Eagle
Date: 8 Nov 2024 13:30:00
Message: <web.672e583346958d9c25b4de9225979125@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

> Hmm. I cannot get that to work, in either 'official' v3.7.0 or v3.8 beta 1.
>
> My own variation, which also fails...
>
> #for(I, 0, 3)
>   #declare My_Sphere[I] = sphere {0,.2 translate .5*I*x}
> #end
>
> The fatal error is: "Expected '=', [ found instead."

Are you preceding the loop with the necessary:
#declare SplineXs = array [11]; //The array for storing the splines in
x-direction is created.

The array needs to exist before you try to assign a value to an element of it.

- BW


Post a reply to this message

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