This is a University project I worked on using the OpenGL Utility Toolkit (GLUT). Shaders are also involved. The editor I implemented lets you create a 2D shape and modify it using several tools.
To get a better grip on what a Cubic Hermite Spline is, feel free to open the following links:
To get a local copy up and running follow these simple steps.
You'll need to have OpenGL installed.
Tool selection menù will open by pressing RMB.
Adding new figure.
Inserting a control point.
Removing a control point.
Moving a control point.
Filling a figure.
The brush tool to move multiple control points.
Using the line cutter tool to split a figure in two.
Moving a figure.
Rotating a figure.
- Rewriting source code in OOP
- Improving UI
- Improving the filling tool through polygon triangulation
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Project Link: https://github.com/stefanoscolapasta/Hermite-Cubic-Spline-Curve-Editor