From ae2916cd6cb16b64a756db51844e66218a51f239 Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Wed, 12 Aug 2026 09:57:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=93=86=E9=92=89=E5=AD=94=E5=AD=94?= =?UTF-8?q?=E5=BE=84=E6=96=B0=E5=A2=9E4.503mm=20=E2=80=94=20IsSpecialFixed?= =?UTF-8?q?Diameter=20=E5=A2=9E=E5=8A=A0=204.503=EF=BC=8C=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E4=B8=BA=E5=9C=86=E5=AD=94=E4=B8=94=E4=B8=8D=E5=8F=82?= =?UTF-8?q?=E4=B8=8E=E5=8F=A0=E6=9D=BF/=E6=9C=80=E5=B0=8F=E5=88=80?= =?UTF-8?q?=E5=BE=84=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ToolItem.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ToolItem.cs b/ToolItem.cs index d09edaf..f60c5a7 100644 --- a/ToolItem.cs +++ b/ToolItem.cs @@ -232,15 +232,20 @@ namespace DrillTools } /// - /// PP定位孔(3.203)、外围参考孔(3.175)、Mark孔(1.049)、机台码(0.499)等特殊孔径。 + /// PP定位孔(3.203)、外围参考孔(3.175)、Mark孔(1.049)、机台码(0.499)、铆钉孔(4.503)等特殊孔径。 /// 不按尾号归类,且不参与叠板块数计算。 /// + /// + /// 4.503mm 为铆钉孔:尾号 3 原本会归为粉尘刀(DustSlot),此处固定为圆孔(Drill), + /// 且不参与最小刀径与叠板计算。 + /// public static bool IsSpecialFixedDiameter(double diameter) { return Math.Abs(diameter - 1.049) < 0.001 || Math.Abs(diameter - 3.175) < 0.001 || Math.Abs(diameter - 3.203) < 0.001 - || Math.Abs(diameter - 0.499) < 0.001; + || Math.Abs(diameter - 0.499) < 0.001 + || Math.Abs(diameter - 4.503) < 0.001; } /// @@ -250,7 +255,7 @@ namespace DrillTools /// 刀具尾号类型 public static ToolSuffixType GetToolSuffixType(double diameter) { - // 特殊孔径优先判断 + // 特殊孔径优先判断(含铆钉孔 4.503:尾号3原本归粉尘刀,此处固定为圆孔) if (IsSpecialFixedDiameter(diameter)) { System.Diagnostics.Debug.WriteLine($"[尾号类型判断] 直径={diameter:F3}: 特殊孔径,尾号类型=钻针");