jerome Posted January 16, 2015 Share Posted January 16, 2015 Hi, Does anyone want to implement a spline curve or did anyone start to do it ? A spline curve is a curve passing thru given points. Say, I have got 4 vectors, the spline will be a 3 degree polynomial continuous curve starting at the first vector, passing at the second vector, then at the third one, then stopping at the fourth one. It's different than bezier curve, wherein the curve doesn't pass thru the control points : it's just curved by the control points. Something like this could be convinient : spline([array of vector3], nb_of_points_wanted) returning an [array of nb_of_points vector3] representing the curve path. If noone started it, I could give a try ... Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted January 18, 2015 Share Posted January 18, 2015 Are you speaking about the Hermite polynomials ? http://en.wikipedia.org/wiki/Hermite_polynomialsMeans you give n points and then get a kind of inertia between points ? Quote Link to comment Share on other sites More sharing options...
jerome Posted January 18, 2015 Author Share Posted January 18, 2015 rather this : http://en.wikipedia.org/wiki/Spline_(mathematics) interpolation here : http://en.wikipedia.org/wiki/Spline_interpolation if noone does (maybe you ?), I'll give a try after I will have done (if I succeed) the tube mesh along a curve Quote Link to comment Share on other sites More sharing options...
jerome Posted January 19, 2015 Author Share Posted January 19, 2015 waowI just discover there are Vector3.Hermite() and Vertor3.CatmullRom() static methods !I guess they could do the job. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted January 19, 2015 Share Posted January 19, 2015 Nope, I never tried, but yes Hermite can help you to do the job ! Don't hesitate if you need help ! I can be very useful Quote Link to comment Share on other sites More sharing options...
jerome Posted January 19, 2015 Author Share Posted January 19, 2015 thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.