POV-Ray : Newsgroups : povray.general : how to implement it ? polygon and splines : how to implement it ? polygon and splines Server Time
2 Aug 2024 10:19:03 EDT (-0400)
  how to implement it ? polygon and splines  
From: khayyam
Date: 16 Nov 2004 06:45:01
Message: <web.4199e8044d5e34fca3be01c60@news.povray.org>
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

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