Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Split Bezier curve



Hi,
in my OpenGL application I draw a 3D Bezier cubic curve in the 3D space.

Now, I have to split the 3D Bezier curve in 8 segments having the same
length. I iterate the curve from t = 0.0 to t = 1.0 using a t constant
interval of 1/8, so t = 0.125, t = 0.250... I get 8 segments, but they have
different length. Closer I go to the endPoint of the curve, each segment is
shorter.
Instead I would need they had the same length. So e.g, when I pass t = 0.5
I need to get the xyz coordinates of the point placed at half a distance
from the first point. Any idea?


Best Regards
-- 
Lorenzo
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.