diff --git a/FlyCube/MainWindow.xaml.cs b/FlyCube/MainWindow.xaml.cs index 5067e83..fec0697 100644 --- a/FlyCube/MainWindow.xaml.cs +++ b/FlyCube/MainWindow.xaml.cs @@ -52,38 +52,38 @@ namespace FlyCube Vector3[] aVecs = abVecs[0].ToArray(); Vector3[] bVecs = abVecs[1].ToArray(); Vector3[] new_bVecs = FlyVecFun.ContactABOut(aVecs, bVecs, StrPrint); - List> re = FlyVecFun.ABypassB(aVecs, new_bVecs, StrPrint, GetVal); + //List> re = FlyVecFun.ABypassB(aVecs, new_bVecs, StrPrint, GetVal); - string txta = ""; - string txtb = ""; - string txtc = ""; + //string txta = ""; + //string txtb = ""; + //string txtc = ""; string txtd = ""; for (int i = 0; i < abVecs[0].Length; i++) { - if (re.Count > 0) - { - txta += i + " 0" + " " + re[0][i].X + " " + re[0][i].Y + " " + re[0][i].Z + "\r\n"; - } - if (re.Count > 1) - { - txtb += i + " 0" + " " + re[1][i].X + " " + re[1][i].Y + " " + re[1][i].Z + "\r\n"; - txtc += i + " 0" + " " + re[2][i].X + " " + re[2][i].Y + " " + re[2][i].Z + "\r\n"; - } + //if (re.Count > 0) + //{ + // txta += i + " 0" + " " + re[0][i].X + " " + re[0][i].Y + " " + re[0][i].Z + "\r\n"; + //} + //if (re.Count > 1) + //{ + // txtb += i + " 0" + " " + re[1][i].X + " " + re[1][i].Y + " " + re[1][i].Z + "\r\n"; + // txtc += i + " 0" + " " + re[2][i].X + " " + re[2][i].Y + " " + re[2][i].Z + "\r\n"; + //} txtd += i + " 0" + " " + new_bVecs[i].X + " " + new_bVecs[i].Y + " " + new_bVecs[i].Z + "\r\n"; } - if (re.Count > 0) - { - SaveFile("C:/Users/szdot/Desktop/a.txt", txta); - } - if (re.Count > 1) - { - SaveFile("C:/Users/szdot/Desktop/b.txt", txtb); - SaveFile("C:/Users/szdot/Desktop/c.txt", txtc); + //if (re.Count > 0) + //{ + // SaveFile("C:/Users/szdot/Desktop/a.txt", txta); + //} + //if (re.Count > 1) + //{ + // SaveFile("C:/Users/szdot/Desktop/b.txt", txtb); + // SaveFile("C:/Users/szdot/Desktop/c.txt", txtc); - } + //} SaveFile("C:/Users/szdot/Desktop/d.txt", txtd); } else