I can confirm that this is a bug. Use the == or != operators instead. The
following works as expected:
Point3d pt1 = new Point3d(1, 0, 0);
Point3d pt2 = new Point3d(2, 0, 0);
Point3d pt3 = new Point3d(1,0,0);
Debug.Assert(pt1 != pt2 );
Debug.Assert(pt1 == pt3 );
wrote in message news:4881410@discussion.autodesk.com...
i want judge two points is same ,so I use the following code ,but result is
always that two points is same. Even polyline(pol) just has two different
points.
Point3d startPnt = pol.GetPoint3dAt(0);
Point3d endPnt =
pol.GetPoint3dAt(pol.NumberOfVertices-1);
Tolerance tr = new Tolerance(0,0);
if (startPnt.IsEqualTo(endPnt))
{
....
}