Skip to content

ninja7v/Catmull-Rom-Splines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

➰ Catmull-Rom Splines

Catmull-Rom Splines interpolaltion coded in C++ by Luc PREVOST.

animation_DS

📃 INSTRUCTIONS

🚀Execution

Catmull-Rom-Splines uses the folowing Libraries:

To execute it, compile the Catmull-Rom-Splines.cpp file and run it. After launching the program, a white window pops up.

⚙️Usage

To start, click wherever you want on the screen to place the first point. Continue placing points and the curve will appear as things progress. To close a curve, click on the starting point. When a curve is closed, a small animation operates. Then, it is possible to create another curve by repeating the same process as before. It is possible to reset the current curve by right-clicking on it. Finally, one can animate the view by clicking on the middle button.

🪡Interpolation

The interpolation is done with Catmull-Rom splines. The code enables both centripetal and uniform case. The default method is centripetal, but it can be changed by commenting the centripedal section and uncommenting the uniform section.

Now it is your turn to draw nice shapes !

Thank you for using Catmull-Rom Splines 🙂

Just interpolate !

About

Draw awesome shapes !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages