Efficiently remove points with same slope
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:43 UTC
Read the original article
Hit count: 228
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