docs(engine): clarify priority so scarce stock favors lower numbers

Document constructor and property semantics and cover priority zero versus nine on one sheet.

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
aj
2026-09-25 07:53:16 -04:00
co-authored by Codex
parent 1b5e1b14a6
commit 95833236cf
2 changed files with 28 additions and 0 deletions
+11
View File
@@ -5,6 +5,13 @@ namespace OpenNest.Engine.Jobs;
/// <summary>An immutable requirement, independent of drawing names, UI state, and drawing quantity counters.</summary>
public sealed class NestJobPart
{
/// <summary>Creates an immutable part requirement.</summary>
/// <param name="id">Unique requirement ID.</param>
/// <param name="geometry">Snapshot of the part geometry.</param>
/// <param name="quantity">Positive number requested.</param>
/// <param name="priority">Placement precedence: lower numbers are placed first and win scarce
/// stock. Zero is the default and highest ordinary priority; equal priorities are peers.</param>
/// <param name="rotation">Allowed rotations, or null for automatic rotation.</param>
public NestJobPart(
string id,
PartGeometrySnapshot geometry,
@@ -29,6 +36,10 @@ public sealed class NestJobPart
/// <summary>Positive number requested; never decremented by placement code.</summary>
public int Quantity { get; }
/// <summary>
/// Placement precedence: a lower number is placed first and wins scarce stock.
/// Zero is the default and highest ordinary priority. Parts with equal priority are peers.
/// </summary>
public int Priority { get; }
public RotationPolicy Rotation { get; }
}