|
![](/i/fill.gif) |
I've been using Chris Colefax's wonderful spline macro.
However, I have a problem. When I try to fill the array of values using a #while
loop, a parse error is generated, "Insufficent number of initializers." Here is
what I am doing:
#declare N = 5; #declare J = 1;
#declare MyPath = create_spline (
array[ N ]{
#while( J<=5)
<cos(2*pi*J/N), 1, sin(2*pi*J/N)>
#declare J = J + 1;
#end
},
spline_loop (no) + spline_tension (-1) + spline_sampling (2) + spline_scale (5)
)
Why the error? How can I use a #while loop to make the values needed by
create_spline?
Thanks.
Post a reply to this message
|
![](/i/fill.gif) |