Hallo,
Folgender Vergleich funktioniert bei mir nicht richtig? Hat jemand eine Erklärung dafür?
public class Start
{
Tolerance tol = new Tolerance(1, 1);
public Start()
{
}
// Define Command "CSTest"
[CommandMethod("ALCSTest")]
static public void ALCSTest() // This method can have any name
{
// Put your command code here
Start st = new Start();
st.test();
}
public void test()
{
bool found = false;
Point3d p1 = new Point3d(100, 20, 0);
Point3d p2 = new Point3d(100, 2000, 0);
if (p1.IsEqualTo(p2, tol)) //Error p1 == p2
{
found = true;
}
Tolerance t = new Tolerance(1, 1);
if (p1.IsEqualTo(p2, t)) //Ok p1 != p2
{
found = true;
}
return;
}
}
}
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP