namespace OpenNest.IO
{
///
/// Options controlling how loads a CAD file
/// and builds a .
///
public class CadImportOptions
{
///
/// Detector name to use for bend detection. Null = auto-detect.
///
public string BendDetectorName { get; set; }
///
/// When false, skips bend detection entirely. Default true.
///
public bool DetectBends { get; set; } = true;
/// Null (default) disables repair. Explicit units and a small physical limit are required.
public Bending.BendRepairOptions BendRepair { get; set; }
///
/// Override the drawing name. Null = filename without extension.
///
public string Name { get; set; }
///
/// Required quantity on the produced drawing. Default 1.
///
public int Quantity { get; set; } = 1;
///
/// Customer name on the produced drawing. Default null.
///
public string Customer { get; set; }
///
/// The units of the drawing being built. An SVG's real-world size is converted to
/// these; DXF and DWG numbers are taken as they are.
///
public Units DrawingUnits { get; set; } = Units.Inches;
///
/// How many of an SVG's user units make an inch, used only when the file does not state
/// its real-world size. Null makes such a file fail rather than guess its scale.
///
public double? SvgUserUnitsPerInch { get; set; }
///
/// Returns a default options instance.
///
public static CadImportOptions Default => new CadImportOptions();
}
}