From 84e0ecfcef31fe5dc0240d2eb9b9e16dc7a3b2df Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期二, 14 一月 2025 17:51:50 +0800
Subject: [PATCH] 修改圆半径最大边界,模型能够正常生成

---
 WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionBundleInfo.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs"
index 3611dc1..4785b8d 100644
--- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs"
+++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs"
@@ -454,7 +454,7 @@
             SkyTextBox controlr1 = this.Controls.Find($"skyTextBox鏂潰r1{index}", true).FirstOrDefault() as SkyTextBox;
             SkyTextBox controlGaMa1 = this.Controls.Find($"skyTextBox鏂潰y1{index}", true).FirstOrDefault() as SkyTextBox;
             SkyTextBox controlh1 = this.Controls.Find($"skyTextBox鏂潰H1{index}", true).FirstOrDefault() as SkyTextBox;
-            if (Convert.ToDouble(controlr1.Text) * (1 + Math.Sin(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180)) > Convert.ToDouble(controlh1.Text) || Convert.ToDouble(controlr1.Text) == 0)
+            if (Convert.ToDouble(controlr1.Text) * (1 + Math.Sin(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180)) > Convert.ToDouble(controlh1.Text) - 3  || Convert.ToDouble(controlr1.Text) == 0)
             {
                 controlr1.BackColor = Color.OrangeRed;
                 MessageBox.Show("r涓嶅悎鐞嗭紒璇烽噸鏂拌緭鍏�");
@@ -482,7 +482,7 @@
                 _sectionBundleInfo = new ViewModel.SectionBundleInfo();
             }
             _sectionBundleInfo.V3 = v3;
-            _sectionBundleInfo.CalcParaV3(this._hdrBaseInfo, this._geomBaseInfo);
+            _sectionBundleInfo.RecalculateArea(this._hdrBaseInfo, this._geomBaseInfo);
 
             RefrehSectBundlePara();
 

--
Gitblit v1.9.3