The question is, how can I make my polyline look good and more curvy without that many points. Or better yet, how do I create a bezier curve after I draw my polyline?
The video shows two algorithms, a variant of the Douglas-Peucker polygon point reduction algorithm and Philip J Schneider’s CurveFit algorithm from Graphic Gems I with material from Philip’s book Geometric Tools for Computer Graphics, as well as material from Mark de Berg Computational Geometry and lastly, Gerald Farin’s Curves and Surfaces for CADG 5th Edition.
I will post the source with comments soon. Who wants it?
Thanks for this Carlos, it sounds like the logic behind it is just crazy lol
Should come in handy for those building off of the Martian Control codebase or similar projects.
P.S. I LOVE the light blue “trail path” lines (shown at 1:13 in the video). It’s very Flight Control-ey and will come in handy for A LOT of projects! [import]uid: 7849 topic_id: 4732 reply_id: 15084[/import]
Where is the source code of this nice demo!
Como que quedo en el ovido despues de las fiestas Navideñas… o tiene que ver con derechos de autor de tus fuentes de inspiracion?
@eaguirre : El codigo lo tengo pero esta sin ninguna optimization y tambien esta super obsfuscado, parece un plato de espagetti mal hecho.
Lo estoy limpiando, pero tengo varios sources disponibles en el ‘code exchange’ de nosotros sobre bezier, pero el de curvefitting no lo tengo todavia pues como te dije esta que es un nudo de globales y dificil de entender.
Tambien tengo que optimizarlo pues hay ciertas condicicones matematicas que pueden ser optimizadas para que performe super bien en mobil.
carlos [import]uid: 24 topic_id: 4732 reply_id: 17290[/import]