sw5cc / BezierCurves2D

An implementation of 2D Bezier Curves in C++ using OpenGL, gl3w, glfw3 and imgui.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fundamental 2D Bezier Curves

A simple project for implementing degree-n 2D Bezier Curves and related concepts.

  • It is built using C++.
  • Rendering is performed using OpenGL, shaders, gl3w and glfw3.
  • User interface is implemented using imgui.
  • Saving .tiff image is done using DevIL.
  • Uses file selection and saving dialogs from Tiny File Dialogs.

Implemented Operations

Related concepts implemented in the project include:

  • Raising the degree of the curve.
  • Remapping the parameterization range from 0-1 to any x-y.
  • Extending the curve for t<0 and t>1.
  • Curve subdivision at given parameter t (generating two independent Bezier Curves).

Notes

The current implementation can be immediately adapted for 3D Bezier Curves. Currently, all Z-coordinates are set to 0.0.

About

An implementation of 2D Bezier Curves in C++ using OpenGL, gl3w, glfw3 and imgui.


Languages

Language:C++ 76.9%Language:C 22.8%Language:Objective-C 0.3%Language:CMake 0.0%Language:Shell 0.0%