Problem :

 

Cubic Bezier / BSpline curves can be defined by specifying four points in a 3D space. Multiple curve pieces can be joined together to form longer continuous curves. The curve is made continuous by the setting the tangents the same at the joint.

 

Develop a class : Bezier / BSplineClass for representing a single Bezier / BSpline Curve. Extend your program for fitting piecewise Bezier / Bspline curves to a set of 2D/3D points. Use appropriate date structures for storing Bezier / BSpline curves.

 

Input : A set of 2D/3D points

 

Output : Piecewise Bezier / Bspline curves fitted to the given set of points.

 

A sample input has been given in files testCubic2D   testCubic3D

 

For more details, mail to : mkalra@cse.iitm.ernet.in