Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Divide Cubic Bezier into equal length segments

7 views
Skip to first unread message

Mark3D

unread,
May 17, 2007, 4:51:31 PM5/17/07
to
Hi,
I have to animate an object along a bezier curve.
So, if I want to create 100 frames, I have to split the curve in 100
equal length segments.
As you know the t parameter is not linear, so if I pass t = 0.5 I get
a point which is not at half-a-distance from the first point of the
curve, and this is wrong to me. So, how should I divide the curve in x
segments with equal length? I have checked this group but it's not yet
clear to me how to do. Any help? Any function returning xyz coords by
passing a linear t parameter (based on the whole length of the curve)
would be greatly welcome. Thank you.

Dave Eberly

unread,
May 18, 2007, 1:23:09 AM5/18/07
to
"Mark3D" <topolo...@hotmail.com> wrote in message
news:1179435090.9...@p77g2000hsh.googlegroups.com...

Look at
http://www.geometrictools.com/Documentation/MovingAlongCurveSpecifiedSpeed.pdf
My Curve2 and Curve3 classes have an implementation of the ideas
in this document. You choose the arclength s of interest, and then
compute the corresponding curve parameter t that gets you to that
arclength.

--
Dave Eberly
http://www.geometrictools.com


0 new messages