Skip to content

Python implementation of Philip J. Schneider's "Algorithm for Automatically Fitting Digitized Curves" from the book "Graphics Gems"

License

Notifications You must be signed in to change notification settings

sbliven/fitCurves

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fitCurves

Python implementation of Philip J. Schneider's "Algorithm for Automatically Fitting Digitized Curves" from the book "Graphics Gems"

Fit one or more cubic Bezier curves to a polyline.

This is a python implementation of Philip J. Schneider's C code. The original C code is available on http://graphicsgems.org/ as well as in https://github.com/erich666/GraphicsGems

Installation

The package should run on python 2 & 3.

To install, run:

python setup.py install

Numpy is required and will be automatically installed.

Usage

A small demo app is provided using Tkinter. It can be run like this:

python -m fitcurves

Left click to add points. Right click to remove points. The optimal spline will be computed on the fly and displayed as with the control points.

demo

Changelog

About

Python implementation of Philip J. Schneider's "Algorithm for Automatically Fitting Digitized Curves" from the book "Graphics Gems"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%