Share Your Code

Smooth Bezier Path (Curve) Fitting and Point Reduction

Posted by ETdoFresh, Posted on February 16, 2012, Last updated February 17, 2012

GitHub URL:

This was my attempt at using the Ramer–Douglas–Peucker algorithm for point reduction and Philip J. Schneider Digital Curve Fitting function (which has still not been implemented, but you can Google "fit_cubic.c" to find out more). I'm all about nice smooth simplified paths, but the only thing I've done so far is got the RDP point reducing algorithm complete and the basics of Tulleken's articles listed below. Please feel free to help me out, refine this code, and make it useable for the masses. Thanks!

While I'm at it: here are the links:

EDIT: I got a little object to follow the path! Next step, tackle Schneider's awesome code!

User offline. Last seen 2 weeks 1 day ago. Offline
Joined: 20 Jun 2011

nice one! thanks for sharing!


Caleb P
User offline. Last seen 14 hours 10 min ago. Offline
Joined: 5 May 2012