All 132 OpenNest.Engine source files now declare namespaces matching their nested directories: Jobs/, Jobs/Placement/, Jobs/Adapters/, Fill/, RectanglePacking/, CirclePacking/, and engine-root types moved from 'OpenNest' to 'OpenNest.Engine'. RootNamespace updated accordingly. Consumers (Api, Console, Mcp, Benchmark, Training, desktop app, tests) gained the explicit usings the move requires; CLAUDE.md updated.
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System;
|
|
using OpenNest.Geometry;
|
|
|
|
namespace OpenNest.Engine.Jobs;
|
|
|
|
/// <summary>Immutable stock settings. Size and spacing are copied value types, not caller-owned settings.</summary>
|
|
public sealed class NestPlateStock
|
|
{
|
|
public NestPlateStock(
|
|
string id,
|
|
Size size,
|
|
int? quantity = null,
|
|
double partSpacing = 0,
|
|
Spacing edgeSpacing = default,
|
|
int quadrant = 1
|
|
)
|
|
{
|
|
ArgumentException.ThrowIfNullOrWhiteSpace(id);
|
|
if (quantity < 0)
|
|
throw new ArgumentOutOfRangeException(nameof(quantity));
|
|
Id = id;
|
|
Size = size;
|
|
Quantity = quantity;
|
|
PartSpacing = partSpacing;
|
|
EdgeSpacing = edgeSpacing;
|
|
Quadrant = quadrant;
|
|
}
|
|
|
|
public string Id { get; }
|
|
public Size Size { get; }
|
|
|
|
/// <summary>Available physical sheets: null is unlimited, zero is legal but unavailable.</summary>
|
|
public int? Quantity { get; }
|
|
public double PartSpacing { get; }
|
|
public Spacing EdgeSpacing { get; }
|
|
public int Quadrant { get; }
|
|
}
|