mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-12-05 16:29:27 -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>
45 lines
1.8 KiB
C#
45 lines
1.8 KiB
C#
namespace OpenNest.CNC.CuttingStrategy
|
|
{
|
|
// Values 1-8 match PEP Technology's numbering scheme (value 6 intentionally skipped);
|
|
// OpenNest's own methods start at 100, outside PEP's range.
|
|
public enum SequenceMethod
|
|
{
|
|
RightSide = 1,
|
|
LeastCode = 2,
|
|
Advanced = 3,
|
|
BottomSide = 4,
|
|
EdgeStart = 5,
|
|
LeftSide = 7,
|
|
RightSideAlt = 8,
|
|
|
|
/// <summary>
|
|
/// Travel time plus <see cref="SequenceParameters.HeatWeight"/> times the estimated heat
|
|
/// where each candidate part starts: it leaves the hot zone, but goes no further than that.
|
|
/// See docs/plate-heat-map.md.
|
|
/// </summary>
|
|
HeatAware = 100,
|
|
}
|
|
|
|
public class SequenceParameters
|
|
{
|
|
/// <summary>The <see cref="HeatWeight"/> new parameters start with, in seconds per °C.</summary>
|
|
public const double DefaultHeatWeight = 0.15;
|
|
|
|
public SequenceMethod Method { get; set; } = SequenceMethod.Advanced;
|
|
public double SmallCutoutWidth { get; set; } = 1.5;
|
|
public double SmallCutoutHeight { get; set; } = 1.5;
|
|
public double MediumCutoutWidth { get; set; } = 8.0;
|
|
public double MediumCutoutHeight { get; set; } = 8.0;
|
|
public double DistanceMediumSmall { get; set; }
|
|
public bool AlternateRowsColumns { get; set; } = true;
|
|
public bool AlternateCutoutsWithinRowColumn { get; set; } = true;
|
|
public double MinDistanceBetweenRowsColumns { get; set; } = 0.25;
|
|
|
|
/// <summary>
|
|
/// <see cref="SequenceMethod.HeatAware"/> only: seconds of travel worth one °C less heat
|
|
/// where the next part starts. Zero orders by travel alone (nearest neighbor).
|
|
/// </summary>
|
|
public double HeatWeight { get; set; } = DefaultHeatWeight;
|
|
}
|
|
}
|