I just finished some work on a new Bezier class based on Paul Burke's algorithm, but with a couple interesting additions in the form of automatic step-estimation, and also algorithmic reduction of extra points based on the Ramer-Douglas-Peucker algorithm. The end result is Bezier curves with only the exact number of points needed to be rendered smoothly. I have full details on my blog if anyone is interested.
http://blog.lotech.org/2013/05/implementing-better-bezier-class-in.htmlAnd the code at GitHub, including a demo/testing project to see it in action.
https://github.com/nshafer/BezierHopefully it's useful to someone.
Thanks,
Nathan Shafer
Comments
Incidentally, that blog theme you use (I think it's the same as the one used by @OzApps) plays havoc when viewed on an IPad.
Best regards
I will check if something can be done about fixing that on the iPad as there are two templates one for Mobile and one for the desktops.
Update: On my iPad, I can see the howto.oz-apps.com render perfectly fine, so I am confused on what is the issue of it not rendering properly on an iPad. Are you using the Mobile theme by any chance?
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
I find it a bit weird that it has these dual scroll bars and that the width is wider than the iPad screen (and it can't be zoomed to fit) but, apart from that, the rendering seems fine. Sorry for the false alarm.
best regards
The practical reason I wrote this class is that I use it as part of an SVG Parser I'm working on, and SVG uses bezier paths extensively. I use the class to either draw the shapes on screen or create physics bodies from them, or both.
Cheers,
Max