Hello,
How we cad find two match point in a point2dcollection?
The following code does not work correctly.
Point2dCollection colPt = new Point2dCollection();
string sDoubleVertex ="";
for (int nCnt1 = 0; nCnt1
{
for (int nCnt2 = 0; nCnt2
{
// Step to the next iteration.
if (nCnt1 == nCnt2) continue;
if ((colPt[nCnt1].X.ToString() == colPt[nCnt2].X.ToString()) &&
(colPt[nCnt2].Y.ToString() == colPt[nCnt2].Y.ToString()))
{
sDoubleVertex = nCnt2.ToString() + "," + sDoubleVertex;
}
}
}
Thank you,
Mohsen