Share Your Code
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:
- Google of fit_cubic.c
- Wiki of Ramer–Douglas–Peucker algorithm (with pseudo code)
- Bezier Curves for your Games: A Tutorial by Herman Tulleken
- Bezier Path Algorithms by Herman Tulleken
EDIT: I got a little object to follow the path! Next step, tackle Schneider's awesome code!