POV-Ray : Newsgroups : povray.general : Planar structures : Re: Planar structures Server Time
21 Nov 2024 04:53:11 EST (-0500)
  Re: Planar structures  
From: Kenneth
Date: 8 Nov 2024 12:45:00
Message: <web.672e4d2046958d9c91c33a706e066e29@news.povray.org>
"Thomas Fester" <tfe### [at] scivitde> wrote:
>
> after your great help with using loops for naming splines, here comes the work I
> have been using you advice for (I have been using the for-loop-approach - #for
> (I, 0, 3)
>   #declare SplineXs[I] = spline {
>     cubic_spline
>     ...
>   }
> #end).
>

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."

It would be great if such a simple construction would work; are you using a
different POV-ray version, for your success?


Post a reply to this message

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