mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-12-04 08:19:25 -05:00
Add SequenceMethod.HeatAware (100, outside PEP's numbering) and SequenceParameters.HeatWeight. HeatAwareSequencer orders parts forward by travel seconds plus the weight times the heat estimated where each part is cut, from HeatSpreadEstimate: a Gaussian blob per finished part that widens with conduction and fades with surface loss. Without a thickness it is nearest neighbor. PlateSequencing.Apply takes the sheet's thermal parameters for it and still places cut-offs as before. The method and weight persist in the cutting settings DTO. Plan Cutting does not use the method and no UI offers it: its strict search refuses rapids over parts cut free, so a heat-spreading order needs 53-78 head raises per plate on the measured nests. docs/plate-heat-map.md records the numbers; revisit once thermal readings calibrate the model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
using System;
|
|
using OpenNest.CNC.CuttingStrategy;
|
|
using OpenNest.CNC.Thermal;
|
|
|
|
namespace OpenNest.Engine.Sequencing
|
|
{
|
|
public static class PartSequencerFactory
|
|
{
|
|
/// <param name="thermal">
|
|
/// The sheet's material and thickness, which only <see cref="SequenceMethod.HeatAware"/>
|
|
/// reads; without them it orders by travel alone.
|
|
/// </param>
|
|
public static IPartSequencer Create(SequenceParameters parameters, ThermalParameters thermal = null)
|
|
{
|
|
return parameters.Method switch
|
|
{
|
|
SequenceMethod.RightSide => new RightSideSequencer(),
|
|
SequenceMethod.LeftSide => new LeftSideSequencer(),
|
|
SequenceMethod.BottomSide => new BottomSideSequencer(),
|
|
SequenceMethod.EdgeStart => new EdgeStartSequencer(),
|
|
SequenceMethod.LeastCode => new LeastCodeSequencer(),
|
|
SequenceMethod.Advanced => new AdvancedSequencer(parameters),
|
|
SequenceMethod.HeatAware => new HeatAwareSequencer(parameters, thermal),
|
|
_ => throw new NotSupportedException(
|
|
$"Sequence method '{parameters.Method}' is not supported."
|
|
),
|
|
};
|
|
}
|
|
}
|
|
}
|