fix: 修复EA刀叠板查表直径区间匹配,叠板区改为折叠输入即算
EA刀/短槽刀列按参数表下限区间 [0.60,0.65)/[0.65,0.70)/[0.70,0.75)/>=0.75 匹配,修复 0.706mm 等刀径查表失败;叠板计算改为 Expander 默认收折、移除计算按钮、输入变化自动计算。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -397,15 +397,16 @@ namespace DrillTools
|
||||
/// <summary>
|
||||
/// 短槽刀/EA刀列匹配
|
||||
/// 列定义:D=0.60, D=0.65, D=0.70, D>=0.75
|
||||
/// 各列为下限区间:[0.60,0.65)、[0.65,0.70)、[0.70,0.75)、[0.75,+∞)
|
||||
/// </summary>
|
||||
private static int FindEAColumnIndex(double diameter)
|
||||
{
|
||||
const double eps = 0.001;
|
||||
if (Math.Abs(diameter - 0.60) < eps) return 0;
|
||||
if (Math.Abs(diameter - 0.65) < eps) return 1;
|
||||
if (Math.Abs(diameter - 0.70) < eps) return 2;
|
||||
if (diameter >= 0.75 - eps) return 3;
|
||||
return -1;
|
||||
if (diameter < 0.60 - eps) return -1;
|
||||
if (diameter < 0.65 - eps) return 0;
|
||||
if (diameter < 0.70 - eps) return 1;
|
||||
if (diameter < 0.75 - eps) return 2;
|
||||
return 3;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user