Account Options

  1. Sign in
Google Groups Home
« Groups Home
Divide Cubic Bezier into equal length segments
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Mark3D  
View profile  
 More options May 17 2007, 4:51 pm
Newsgroups: comp.graphics.algorithms
From: Mark3D <topolone_...@hotmail.com>
Date: 17 May 2007 13:51:31 -0700
Local: Thurs, May 17 2007 4:51 pm
Subject: Divide Cubic Bezier into equal length segments
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.

 
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.
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.
End of messages
« Back to Discussions « Newer topic     Older topic »