POV-Ray : Newsgroups : povray.advanced-users : struggle with splines : Re: struggle with splines Server Time
6 Oct 2024 12:56:56 EDT (-0400)
  Re: struggle with splines  
From: Chrisir
Date: 4 Oct 2006 07:50:00
Message: <web.45239ee9d128f936a9bd07600@news.povray.org>
Guys,

thank you so much for your highly appreciated contributions.

Question: Do I have my maths right
when I have a spline with -1,0,0.5,1,2


> #macro MSpline(P1,P2,M1,M2,M3)
>   spline {
>     cubic_spline
>     -1,M1
>      0,P1
>      0.5,M2
>      1,P2
>      2,M3
>   }
> #end  // end of macro

going from -1 to 2
and my while is from 0 to 1?

#local ctr = 0;
#while (ctr <= 1)
 [......]
 #local ctr = ctr + 0.01;
#end   // end of while

I tried other figures (instead of -1,0,0.5,1,2), but I can not figure it
out.

Thanks!

Greetings!

Chris


Post a reply to this message

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