Skip to content

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

Notifications You must be signed in to change notification settings

andresbejarano/BezierCurves2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages