Mailing Lists: Apple Mailing Lists

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

Re: Split Bezier curve



This is kind of crude, but you could cut up your bezier curve into a *lot* of segments, say, a few hundred, and then patch them together into 8 segments of (roughly) equal length.

email@hidden
    "In the same trial, only 16 percent of those who received placebo
     sandwiches reported experiencing high levels of deliciousness."
        --The Onion


On May 17, 2007, at 12:19 PM, Lorenzo wrote:

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/shamyl% 40zakariya.net


This email sent to 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
References: 
 >Split Bezier curve (From: Lorenzo <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.