How to improve performance

Posted by Ram on Stack Overflow See other posts from Stack Overflow or by Ram
Published on 2010-04-27T10:22:12Z Indexed on 2010/04/27 10:23 UTC
Read the original article Hit count: 303

Filed under:
|
|
|

Hi,

In one of mine applications I am dealing with graphics objects. I am using open source GPC library to clip/merge two shapes. To improve accuracy I am sampling (adding multiple points between two edges) existing shapes. But before displaying back the merged shape I need to remove all the points between two edges.

But I am not able to find an efficient algorithm that will remove all points between two edges which has same slope with minimum CPU utilization. Currently all points are of type

PointF 

Any pointer on this will be a great help.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#