refactor: rename PlateResult to PlateProcessingResult
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace OpenNest.Engine
|
namespace OpenNest.Engine
|
||||||
{
|
{
|
||||||
public class PlateResult
|
public class PlateProcessingResult
|
||||||
{
|
{
|
||||||
public List<ProcessedPart> Parts { get; init; }
|
public List<ProcessedPart> Parts { get; init; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace OpenNest.Engine
|
|||||||
public ContourCuttingStrategy CuttingStrategy { get; set; }
|
public ContourCuttingStrategy CuttingStrategy { get; set; }
|
||||||
public IRapidPlanner RapidPlanner { get; set; }
|
public IRapidPlanner RapidPlanner { get; set; }
|
||||||
|
|
||||||
public PlateResult Process(Plate plate)
|
public PlateProcessingResult Process(Plate plate)
|
||||||
{
|
{
|
||||||
var sequenced = Sequencer.Sequence(plate.Parts.ToList(), plate);
|
var sequenced = Sequencer.Sequence(plate.Parts.ToList(), plate);
|
||||||
var results = new List<ProcessedPart>(sequenced.Count);
|
var results = new List<ProcessedPart>(sequenced.Count);
|
||||||
@@ -66,7 +66,7 @@ namespace OpenNest.Engine
|
|||||||
currentPoint = ToPlateSpace(lastCutLocal, part);
|
currentPoint = ToPlateSpace(lastCutLocal, part);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new PlateResult { Parts = results };
|
return new PlateProcessingResult { Parts = results };
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Vector ToPartLocal(Vector platePoint, Part part)
|
private static Vector ToPartLocal(Vector platePoint, Part part)
|
||||||
|
|||||||
Reference in New Issue
Block a user