From 569d1a0569e02bd69efd788fc87bf345bf04d905 Mon Sep 17 00:00:00 2001 From: szdot Date: Wed, 27 Dec 2023 14:36:53 +0800 Subject: [PATCH] =?UTF-8?q?3D=20=E7=BB=95=E8=A1=8C=E5=A4=A7=E6=94=B9?= =?UTF-8?q?=E5=89=8D=E4=BF=9D=E5=AD=98=20=E5=8C=85=E6=8B=AC=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FlyCube/MainWindow.xaml.cs | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) 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