Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Divide Cubic Bezier into equal length segments
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave Eberly  
View profile  
 More options May 18 2007, 1:23 am
Newsgroups: comp.graphics.algorithms
From: "Dave Eberly" <dNOSPAMebe...@usemydomain.com>
Date: Thu, 17 May 2007 22:23:09 -0700
Local: Fri, May 18 2007 1:23 am
Subject: Re: Divide Cubic Bezier into equal length segments
"Mark3D" <topolone_...@hotmail.com> wrote in message

news:1179435090.993682.302800@p77g2000hsh.googlegroups.com...

> 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.

Look at
http://www.geometrictools.com/Documentation/MovingAlongCurveSpecified...
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.