|
![](/i/fill.gif) |
hello everybody
i've got a little syntaxical problem, I would like to define a polygon whose
points comes from a spline that I'm covering.
I would like to do something like that :
#declare MySpline =
spline {
natural_spline
0, <0,1,0>
.5, <.5,.6,0>
1, <1,1,0>
}
#declare i=0;
polygon{10,
#while (i<10)
MySpline(i)
#declare i=i+1;
#end
pigment{Red}
}
but of course, it doesn't work, it brings a parse error. How should I do ?
Thanks for your help.
Post a reply to this message
|
![](/i/fill.gif) |