namespace OpenNest.Engine
{
public class NestItem
{
///
/// The drawing to be nested.
///
public Drawing Drawing { get; set; }
///
/// Priority of the part determines nesting order. Higher numbers are nested first.
///
public int Priority { get; set; }
///
/// The number of parts to be nested.
///
public int Quantity { get; set; }
///
/// The rotation step in radians.
///
public double StepAngle { get; set; }
///
/// The rotation start angle in radians.
///
public double RotationStart { get; set; }
///
/// The rotation end angle in radians.
///
public double RotationEnd { get; set; }
///
/// A copy of this item with the given quantity and every other setting unchanged.
///
public NestItem WithQuantity(int quantity) =>
new()
{
Drawing = Drawing,
Priority = Priority,
Quantity = quantity,
StepAngle = StepAngle,
RotationStart = RotationStart,
RotationEnd = RotationEnd,
};
}
}