コード例 #1
0
ファイル: Program.cs プロジェクト: HaraGabi/Billiard3D
        private static void TriangleSphere()
        {
            var startingPoints = OctoSphereTri().ToList();
            var list           = new ConcurrentBag <Line>();

            foreach (var startingPoint in startingPoints)
            {
                var sphere2 = new CausticSphere(8);
                var line    = sphere2.Start(startingPoint);
                list.Add(line);
            }
            foreach (Line line in list)
            {
                Writer(line, @"C:\Workspaces\etc\szakdoga\CAUSTICSPHERETriangle4", $"PointTableOctave.txt");
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: HaraGabi/Billiard3D
        private static void SphereCaustic2(double alpha)
        {
            var startingPoints = SphereStart(alpha, 500, 500);
            var list           = new ConcurrentBag <Line>();

            foreach (var startingPoint in startingPoints)
            {
                var sphere2 = new CausticSphere();
                var line    = sphere2.Start(startingPoint);
                list.Add(line);
            }
            foreach (Line line in list)
            {
                Writer(line, @"C:\Workspaces\etc\szakdoga\CAUSTICSPHERE6", $"PointTable{alpha}.txt");
            }
        }