namespace DeepNestLib { public class SvgNestConfig { public PlacementTypeEnum placementType = PlacementTypeEnum.squeeze; public double curveTolerance = 0.72; // 曲线容差 public double clipperScale = 10000000; // 10000000; public bool exploreConcave = false; // 是否探索凹面区域 public int mutationRate = 10; // 突变率 public int populationSize = 5; // 遗传算法种群大小 public int rotations = 4; // 部件旋转数 public double spacing = 10; // 部件间间距 public double sheetSpacing = 0; public bool useHoles = false; // 是否部件嵌套 public double timeRatio = 0.5; public bool mergeLines = false; public double scale = 25; public bool simplify; #region port features (don't exist in the original DeepNest project) public bool clipByHull = false; public bool clipByRects = true; //clip by AABB + MinRect #endregion // 新添加 public float[] SpecfiedAngles { get; set; } = null; public float AngleStart { get; set; } = 0; public float AngleEnd { get; set; } = 360; } }