Skip to content

ninja7v/Catmull-Rom-Splines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

➰ Catmull-Rom Splines

C++ Catmull-Rom Splines interpolaltion.

Catmull-Rom-Splines_enjoy

📃 INSTRUCTIONS

🚀Execution

Compile the Catmull-Rom-Splines.cpp file and run it. A white window will appear with an empty canvas ready to draw.

⚙️Usage

Click with LMB to place points. The spline updates automatically as you add more points. Click back on the first point to close the curve — then you can start a new one.

Shortcuts:

  • c → clear all curves
  • a → de/activate the animation
  • Esc → quit the program

🪡Interpolation

The interpolation is done with Catmull-Rom splines, a type of cubic Hermite spline that passes through every control point. Both centripetal and uniform case are implemeted. The default method is centripetal, but it can be changed by commenting the centripedal section and uncommenting the uniform section.

🤝 Contribute

Ideas, bug reports, or pull requests — all are welcome. Let’s build something awesome together!

Now it is your turn to draw nice smooth shapes.

Thank you for using Catmull-Rom Splines 🙂

Just interpolate!

About

Draw smooth shapes!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages