|
![](/i/fill.gif) |
You were right, that is what I am looking for.
But I already did come up with this method, there
was just one problem:
Bezier-Splines stay longer on the beginnings and
ends of a curve, and when using very small values
for the difference between the Ts, the three
positions may line up, resulting in weird centrifuges.
So I'm looking for possibilites of somehow detecting
which centrifuge there would be, if there would be a
more distinct curvature...
> Assuming you have a spline function Spline(T) where T is the input
> interpolation value, I think you can do it like this:
>
> (Spline(T)-(Spline(T+0.001)+Spline(T-0.001))/2)
>
> Some ASCII art to illsustrate the code:
>
> *****P*****
> ***** ******
> *A C B*
> ** **
> * *
>
> P is Spline(T), A is Spline(T-0.001), B is Spline(T+0.001), C is the average
> of A and B. Then you just find the vector from C to P.
>
--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Post a reply to this message
|
![](/i/fill.gif) |