|
![](/i/fill.gif) |
kha### [at] hotmail com
news:web.4199e8044d5e34fca3be01c60@news.povray.org
> 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.
This do work if You use MySpline(i/10) because spline has points 0..1 not
0..10
--
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics
Post a reply to this message
|
![](/i/fill.gif) |