feat: 添加自由锻毛料无圆头和有圆头两种绘制模块

This commit is contained in:
sladro 2026-02-12 11:09:42 +08:00
parent 2ccdc970ce
commit 50a8e275dd
2 changed files with 9 additions and 4 deletions

View File

@ -276,10 +276,12 @@ namespace CadParamPluging.Cad
dimText += $"\\X({FormatDimNumber(valPrime.Value, null)})";
}
// 修正:引线向下延伸 innerFilletR以接触直边
double dimYStart = oy + H - innerFilletR;
AddLinearDim(
ctx,
new Point3d(xSectionLeft, oy + H, 0),
new Point3d(xSectionRight, oy + H, 0),
new Point3d(xSectionLeft, dimYStart, 0),
new Point3d(xSectionRight, dimYStart, 0),
new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0),
0,
dimText);

View File

@ -272,10 +272,13 @@ namespace CadParamPluging.Cad
dimText += $"\\X({FeatureDrivenDrawer.FormatDimNumber(valPrime.Value, null)})";
}
// 修正:引线向下延伸 sectionFilletR以接触直边
// sectionFilletR 是剖面处的圆角半径
double dimYStart = oy + H - sectionFilletR;
AddLinearDim(
ctx,
new Point3d(xSectionLeft, oy + H, 0),
new Point3d(xSectionRight, oy + H, 0),
new Point3d(xSectionLeft, dimYStart, 0),
new Point3d(xSectionRight, dimYStart, 0),
new Point3d((xSectionLeft + xSectionRight) / 2, oy + H + 15, 0),
0,
dimText);