Skip to content

A Python implementation of a relaxed cubic spline curve

License

Notifications You must be signed in to change notification settings

musicofmusix/bezierspline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bezierspline

A Python implementation of the relaxed cubic spline curve

The relaxed cubic spline curve is best described in section 5 of the UCLA Math 149 Cubic Spline Curves document. This was created as part of the process of procedurally generating curves in a separate Unity project.

The reference document can be accessed here.

Features

  • The script takes two or more user-defined 2D coordinates and interpolates intermediate points using the Bernstein polynomial form of cubic Bezier curves
  • All curves are connected smoothly, through the matching of first (tangent) and second (curvature) derivatives
  • The number of intermediate draw points can be manually set by the user

bezierspline_demo

About

A Python implementation of a relaxed cubic spline curve

Topics

Resources

License

Stars

Watchers

Forks

Languages