Skip to content

Posts tagged ‘splines’

Cox – deBoor Spline.

February 5, 2006


So a friend of mine wanted to work out a math curve – specifically B-spline curve. In any event he worked it out before me, but it gave me the challenge too. So the basic formula is:

p = p + p1

So if we imagine 4 points in space: a,b,c,d we draw a line between these by defining vectors between each segment ab-bc and bc-cd giving us a1-b1. Finally we get a final vector between a1-b1 giving us a2. The fn acts as a pattern of 2 sets eg.

1 2 3 4 = 3 5 7 = 8 12 = 20