Skip to content

uses pyopengl and DeCasteljau's algorithm to find bezier curves

Notifications You must be signed in to change notification settings

ifjorissen/bezier_opengl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bezier Curves

Isabella Jorissen Math 385 3.14.15

To run:

  • python3 bezier.py
  • optionally, python3 bezier.py <smoothness integer>; e.g python3 bezier.py 20`

##Functionality:

  • click and drag blue control points (slowly!) to see how the bezier curve reacts
  • see screengrabs folder

Coloring:

  • Large blue points: initial control points
  • Yellow points are midpoints
  • Orange lines define the bounding triangle
  • Pink points define curve a (defined by the points dcasta)
  • Pink points define curve b (defined by the points dcastb)
  • Green points define curve c (defined by the points dcastc)

##Possible Extensions:

  • Given 3 points that define a curve (or, perhaps a unit circle), find the control points and approximate the curve
  • Recursive algorithm for DeCasteljau

About

uses pyopengl and DeCasteljau's algorithm to find bezier curves

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages