Optimizing / simplifying a path

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-13T14:51:48Z Indexed on 2010/06/13 15:02 UTC
Read the original article Hit count: 158

Filed under:
|
|
|

Say I have a path with 150 nodes / verticies. How could I simplify if so that for example a straight line with 3 verticies, would remove the middle one since it does nothing to add to the path. Also how could I avoid destroying sharp corners? And how could I remove tiny variations and have smooth curves remaining.

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c