Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Algorithms > converting from...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4852 of 4963
Post > Topic >>

converting from a b-spline to a catmull rom spline

by luca.pamparana@[EMAIL PROTECTED] Jul 5, 2008 at 02:03 PM

Hello all,

The Matrix formulation of a b-spline is given as:

Q(u) = [u(3), u(2), u, 1] * 1/6 * |-1 3 -3 1| * |V0|
                                                  |3 -6 3  0| * |V1|
                                                  |-3 0 3  0| * |V2|
                                                  |1  4 1  0| * |V3|

The formulation for the catmull rom spline is given by:

Q(u) = [u(3), u(2), u, 1] * 1/2 * |0 2   0  0| * |V0|
                                                  |-1 0 1  0| * |V1|
                                                  |2 -5 4 -1| * |V2|
                                                  |-1 3 3  1| * |V3|

Now, if I want to go from a b-spline representation to a catmull rom
representation and the vector G is the control points for the b-spline
curve, can I simply do;

inverse of (1/6 * |-1 3 -3 1| ) * |0 2   0  0|  * G
                                                |-1 0 1  0|
                                                |2 -5 4 -1|
                                                |-1 3 3  1|

Does this seem correct?

Thanks,
Luca
                           |3 -6 3  0|
                           |-3 0 3  0|
                           |1  4 1  0|
 




 3 Posts in Topic:
converting from a b-spline to a catmull rom spline
luca.pamparana@[EMAIL PRO  2008-07-05 14:03:34 
Re: converting from a b-spline to a catmull rom spline
luca.pamparana@[EMAIL PRO  2008-07-05 21:20:33 
Re: converting from a b-spline to a catmull rom spline
luca.pamparana@[EMAIL PRO  2008-07-05 21:22:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 5:43:36 CDT 2008.