Skip to content

C++ implementation of fitting B-splines to an Eigen array of data in 3D. 2D data may also be fit by homogenising the data points.

Notifications You must be signed in to change notification settings

nackjaylor/b-splines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

B-Splines

C++ implementation of fitting B-splines to an Eigen array of data in 3D. 2D data may also be fit by homogenising the data points.

Note: much more documentation and tidying up required, however usage should be along the lines of:

  BSpline spline;
  
  spline.fit(<3xn Eigen matrix>, <degree>, <number control points>);
  
  Eigen::Matrix<double,3,Dynamic> spline_samples = spline.sample(<number of samples>, <degree>);

Much of the class if left public if you are working with B-spline coefficients, knot vectors etc.

I hope you find some use from this.

Dependencies

  • Eigen (>=v3.4.0)

About

C++ implementation of fitting B-splines to an Eigen array of data in 3D. 2D data may also be fit by homogenising the data points.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages