Sign in to follow this  
fpsgamer

Drawing Curved Lines (Drawing curved line graphs)...

Recommended Posts

Could you guys help summarize various methods for generating curved lines based on a set of data points. Also tutorials or book reccomendations would be great. Thanks.

Share this post


Link to post
Share on other sites
Bezier curves, NURBS, and B-Spline's (in order of complexity) are some of the more common curve-generating methods. Given a set of control points, you can generate curves that either go through the points or are influenced by there location, and you can generate curves with different mathematical and geometric properties. I have a document I uploaded a while ago covering B-Splines that's a lot easier to understand than all the mathmatical nomenclature you'll find at Wikipedia or Mathworld.

Share this post


Link to post
Share on other sites
The three splines mentioned by Zipster are probably the most commonly used, but the topic of approximation theory and regression goes on as far as the eye can see. Perhaps if you tell us what sort of data you'd like to fit a curve to, we can suggest a suitable method.

Others you may want to look into include Least Squares (if you only need to come close to the nodes) and Lagrange Interpolation (if you don't really care what the curve does between nodes).

Regards
Admiral

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this