Hi All,

The subject might not cover it, but I didn't have a clue what this is
called in real life :)

I have a huge collection of point (x,y). Those points make up line
(x1,y1 to x2,y2). Is there
Some sort of well known function to smooth these points so that there is
less to draw?

E.g. take these lines

1:      100,100 to      101,101
2:      101,101 to      103,102
3:      103,102 to      110,112

I now have to say, moveTo startPoint, then lineTo endPoint for each
line. A smart function might be able to make this a moveTo once and then
2 lineTo's.
That saves 2 moveTo's. Another optimisation which would be great is, if
there are a lot (tens) of lines within a couple of pixels, if it would
be possible
To filter out a lot of lines and only draw the ones that are needed for
the visual. (something like the smooth line function inside the flash
IDE).

Anybody came across something like this? I remember Grant Skinner (I
thought he was the one) making a text recognition engine in flash once.
He also
Used some algorythm to simplify the lines and points.

Tx

Ben Smeets


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to