POV-Ray : Newsgroups : povray.general : how to implement it ? polygon and splines : Re: how to implement it ? polygon and splines Server Time
2 Aug 2024 10:26:41 EDT (-0400)
  Re: how to implement it ? polygon and splines  
From: Rafal 'Raf256' Maj
Date: 16 Nov 2004 07:05:04
Message: <Xns95A385755DC73raf256com@203.29.75.35>
kha### [at] hotmailcom
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

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