
Share Your Code
Browse Code
- All (914)
-
(95)
-
(87)
-
(45)
-
(4)
-
(42)
-
(136)
-
(22)
-
(40)
-
(13)
-
(66)
-
(153)
-
(211)
Smooth Bezier Path (Curve) Fitting and Point Reduction
GitHub URL:
https://github.com/ETdoFresh/smoothPath
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!
- Type:
- Tags:


nice one! thanks for sharing!
-finefin