mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-12-02 07:31:34 -05:00
refactor: remove unused OpenNest.Gpu project
OpenNest.Gpu never ran: the best-fit slide search passes native entities, whose GpuDistanceComputer overload fell back to the CPU, and the GPU pair evaluator was disabled earlier. Remove the project, its axis-only ISlideComputer adapter (GpuDistanceComputer, BestFitCache.CreateSlideComputer, BestFitFinder's slideComputer parameter), the Training tool's GPU wiring, SpatialQuery.FlattenLines and the ILGPU tests. Best fit always uses CpuDistanceComputer, as it already did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47497f4153
commit
aeef9b58cd
22 files changed
+11
-1917
No files matched your search
@@ -377,23 +377,6 @@ namespace OpenNest.Geometry
|
||||
return SlideResolver.FirstBlocking(ref source, contacts, unit.X, unit.Y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Packs line segments into a flat double array [x1,y1,x2,y2, ...] for GPU transfer.
|
||||
/// </summary>
|
||||
public static double[] FlattenLines(List<Line> lines)
|
||||
{
|
||||
var result = new double[lines.Count * 4];
|
||||
for (int i = 0; i < lines.Count; i++)
|
||||
{
|
||||
var line = lines[i];
|
||||
result[i * 4] = line.pt1.X;
|
||||
result[i * 4 + 1] = line.pt1.Y;
|
||||
result[i * 4 + 2] = line.pt2.X;
|
||||
result[i * 4 + 3] = line.pt2.Y;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the blocking directional distance using raw edge arrays and location
|
||||
/// offsets. Sorts both edge arrays in place for pruning.
|
||||
|
||||
Reference in new issue
Block a user