Library for manipulating 2D parametric B-splines.
- Creation splines from a vector of points
- Creation of spiral-like splines
- Creation of ellipses
- Finding intersection points of two splines with an accuracy of 1e-10
- Finding the closest points of two splines with an accuracy 1e-10
Linux:
$ git clone https://github.com/Igkho/Spline.git
$ cd Spline
$ mkdir build
$ cd build
$ cmake ..
$ make -j10
Windows:
- run CMake-gui;
- specify the source code and binary directories;
- press Configure button, set up the Generator settings (i.e. select the MSVC version);
- press Generate button;
- open ALL_BUILD.vcxproj in MSVC and build the solution;
Executables:
- Spline - the spline manipulation library
- SplineTests - unit tests of the library
- SplineExample - generates splines intersection and closest points finding examples
Dependencies:
- the library depends on Eigen (fetched by Cmake)
- tests depend on GoogleTest (fetched by Cmake)
- examples depend on OpenCV (to run the executable the OpenCV libraries should be on the search path)
Intersecting two splines:
Intersecting a spline and an ellipse:
Intersecting spirals:
Closest points of two splines:
Closest points of a spline and an ellipse: