POV-Ray : Newsgroups : povray.advanced-users : Colefax Spline Macro : Re: Colefax Spline Macro Server Time
5 Jul 2024 14:58:53 EDT (-0400)
  Re: Colefax Spline Macro  
From: Dan Byers
Date: 20 Mar 2008 14:05:01
Message: <web.47e2b4f3976b7b23a8d0b25a0@news.povray.org>
Looks like the problem is in the array declaration; if I declare the array using
that #while loop before I put it in create_spline(), it blows up on me, too.

// generates error
#local N = 5;
#local x = 1;
#declare my_array = array[ N ] {
  #while( x <= N )
  ...
  #local x = x + 1; #end
}

Probably have to do it the old fashioned way:

#declare my_array = array[ N ]
#local i = 0; #while( i < N )
   #declare my_array[ i ] = ....
#local i = i + 1; #end

I may be wrong.  It's happened before (more times than I care to remember)...

--
Dan
GoofyGraffix.com


Post a reply to this message

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