Another option: use my LineGeneralization class

www.motiondraw.com/md/as_samples/drawing/lineGeneralizationDemo/demo.html

An excellent explanation/visualisation of the implemented algos - Lang
Simplification and McMaster's Slide Averaging Algorithm - is found at
http://www.sli.unimelb.edu.au/gisweb/LGmodule/LGSelect.htm (thanks to Jim
Cheng)

What is still missing in this context is a good AS spline function:
feed in an arbitrary number of points, get back - reasonably fast... - a
number of quadratic bezier curves that connect the points in an elegant way.
This would allow to reduce the number of points drastically while still
getting visually acceptable results (as you'll see, I'm using a
over-simplistic approach in the demo to draw the 'pseudo-spline' which will
not always produce elegant results...)

For math buffs: Jim Fitzsimmons has several interesting-looking articles on
Bézier Curves   http://www.tinaja.com/third01.asp which might be helpful (not
for me though - that's _far_ beyond me...)
But I guess that it's not so much about mathematical precision as about
finding an approximation that is fast enough to be processed by Flash...

Martin? Helen? How about reviving the good ol' hardcore Math/Trig sessions
on flashcoders?  :-)

HTH
--------------
Andreas Weber
motiondraw.com



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to