PDA

View Full Version : Programming B-spline curve in Matlab from scratch


roldy
Jan25-12, 09:21 PM
I decided to write my problem and attach as a separate document so that everything was included and would leave room here to discuss my problem.

From what I understand from the equations is that for each value of u I calculate the value of the basis function for each basis function i. Then this is multiplied by the control point. This is done for each order k. The thing that I don't understand is that how can I pull this off if u is the inner most loop? I'm not sure the proper placement of the blending function P(u).

Could someone take a look at my code and logic and see if there is another way of doing this or shoot me some pointers? It would be greatly appreciated.

morteza3890
Feb27-12, 12:59 AM
hi my friend, :)
I see your code.
I test it and it works good,but did you write a MATLAB code for using Basis-function to plot B-spline curve?!
could you upload it for me?
thanks.