/B-Spline-curve-fitting

It's a curve eiditor which shows b-spline curve(bezier curve included) and the approximation method to fit shapes.

Primary LanguageC++MIT LicenseMIT

B-Spline-curve-fitting

It's a program that do B-spline curve fitting for discrete points in real time.

The fitting method include

  • Global interpolation
    • Uniform
    • Centripetal
    • Chorld
    • Universal
  • Global Approximation
    • Uniform
    • Centripetal
    • Chorld
    • Universal

Built With

The fitting code are wrote with the help of https://pages.mtu.edu/~shene/COURSES/cs3621/NOTES/

Usage

Right click your mouse to add points, drag your left mouse to move point. You could click the check box of the left panel based on your need.

Building

Prerequisite: CMake

Linux

git clone https://github.com/forty-twoo/B-Spline-curve-fitting.git
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j
./B-Spline-curve-fitting

Windows

git clone https://github.com/forty-twoo/B-Spline-curve-fitting.git
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
# Find the .sln project then open it with IDE(eg.Visual Studio)
# Build solution then Run it

License

Distributed under the MIT License. See LICENSE for more information.