From fc97c8be25f9c1911fa699d939b9237f8dec6eba Mon Sep 17 00:00:00 2001 From: Nibu Date: Fri, 13 Nov 2026 15:39:23 +0000 Subject: [PATCH] Delaunay: drop the fewer-than-two guard the collinear branch already covers Co-Authored-By: Claude Sonnet 5.5 --- Assets/Scripts/ServerShared/Delaunay.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Assets/Scripts/ServerShared/Delaunay.cs b/Assets/Scripts/ServerShared/Delaunay.cs index f791a8d41..911de658a 100644 --- a/Assets/Scripts/ServerShared/Delaunay.cs +++ b/Assets/Scripts/ServerShared/Delaunay.cs @@ -27,7 +27,6 @@ public static class Delaunay for (var i = 1; i < n; i++) if (points[order[i - 1]].x == points[order[i]].x && points[order[i - 1]].y == points[order[i]].y) throw new ArgumentException($"Delaunay points {Math.Min(order[i - 1], order[i])} and {Math.Max(order[i - 1], order[i])} are the same point ({points[order[i]].x}, {points[order[i]].y})"); - if (n < 2) return new List<(int a, int b)>(); var x = new double[n + 3]; var y = new double[n + 3];