1
0

remove error

This commit is contained in:
2019-05-22 15:15:14 +02:00
parent 74c2c63115
commit 01e0a40316
2 changed files with 5 additions and 6 deletions

View File

@@ -10,8 +10,8 @@ namespace TMI_practicum
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
CheckAlgo(); //CheckAlgo();
//GetChartData(); GetChartData();
if (args.Length < 1) if (args.Length < 1)
{ {
Console.WriteLine("Please enter a file."); Console.WriteLine("Please enter a file.");
@@ -62,8 +62,8 @@ namespace TMI_practicum
Console.WriteLine("start check {0}", i++); Console.WriteLine("start check {0}", i++);
var circles = CreateRandomCircles(5); var circles = CreateRandomCircles(5);
var correctSol = SimpleAlgorithm.Solve(circles); var correctSol = SweepLineAlgorithm.Solve(circles);
var solved = SweepLineAlgorithm.Solve(circles); var solved = SweepLineEffAlgorithm.Solve(circles);
foreach (var intersection in correctSol) foreach (var intersection in correctSol)
{ {
@@ -122,7 +122,7 @@ namespace TMI_practicum
for (int i = 0; i < amount; i++) for (int i = 0; i < amount; i++)
{ {
circles.Add(new Circle(Math.Round(rnd.NextDouble() * 1.0, 15), Math.Round(rnd.NextDouble() * 1.0, 15), circles.Add(new Circle(Math.Round(rnd.NextDouble() * 1.0, 15), Math.Round(rnd.NextDouble() * 1.0, 15),
Math.Round(rnd.NextDouble() * 0.90 + 0.05, 15))); Math.Round(rnd.NextDouble() * (1.0/amount), 15)));
} }
return circles; return circles;

View File

@@ -76,7 +76,6 @@ namespace TMI_practicum
} }
catch (DuplicateNotAllowedException) catch (DuplicateNotAllowedException)
{ {
Console.WriteLine("error");
} }
if (s1.Key.Type == SegmentKey.SegmentType.Upper) if (s1.Key.Type == SegmentKey.SegmentType.Upper)