From 91105b77c916d06dd30380e20594e29f85eae3da Mon Sep 17 00:00:00 2001
From: tangxu <tangxu76880903>
Date: 星期二, 24 十二月 2024 11:39:34 +0800
Subject: [PATCH] 更换HydrEngineCSharp

---
 WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesign2DCtrl.cs |   48 +++++++++++++++++++++++++++++++-----------------
 1 files changed, 31 insertions(+), 17 deletions(-)

diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesign2DCtrl.cs b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesign2DCtrl.cs
index c4f9786..5e271e2 100644
--- a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesign2DCtrl.cs
+++ b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesign2DCtrl.cs
@@ -3,6 +3,7 @@
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using HydrEngineCSharp;
 
 namespace DPumpHydr.WinFrmUI.Volute
 {
@@ -26,27 +27,40 @@
             bool bSucc = pDisplayView.BeginTurbopumpTopoShape(strTurbopumpTopoShapeName); 
         }
 
-        public HydrEngineCSharp.BcGePoint CreateOutflowBody()
+
+
+        public void CreateWaterBody(HydrEngineCSharp.BcGePoint theMPlnBasePt, HydrEngineCSharp.BcGePoint theMPlnOuterPt)
         {
-            double dOuterOffset = theOffset;
-            double dOuterHigh = theHigh;
-            double dOuterRad = theRad;
-            if (CreateOutflowBodyConnect())
-            {
-                pDisplayView.build2DSegmentCurve(dOuterOffset, dOuterHigh, dOuterRad);// 75.660892, 283.1167
-                Invalidate(true);
-                pDisplayView.FitAll3DViews(true);
-                HydrEngineCSharp.BcGePoint thePt = pDisplayView.get2DSegmentInterPt();
 
-                //pDisplayView.buildVoluteOuterSolid(wstrShapeNameI, m_dTopValue, m_dBtmValue);
 
-                //pDisplayView.FitAll3DViews(true);
-                return thePt;
-            }
+            //WaterBodyOuterParam theWaterBodyOuterParam = new WaterBodyOuterParam();
+            //theWaterBodyOuterParam.SetOuterOffset(theOffset);
+            //theWaterBodyOuterParam.SetOuterHigh(theHigh);
+            //theWaterBodyOuterParam.SetOuterRad(theRad);
+            //theWaterBodyOuterParam.SetTopValue(m_dTopValue);
+            //theWaterBodyOuterParam.SetBtmValue(m_dBtmValue);
 
-            return null;
-
-            //Invalidate(true);
+ 
+            
+            //    pDisplayView.build2DMidCurve(theWaterBodyOuterParam);
+           
+            //    pDisplayView.build2DMidCurveFillet(dAngle, m_dMPlnBasePtScaleValue, m_dMPlnOuterPtScaleValue);
+            //    Invalidate(true);
+            //    pDisplayView.FitAll3DViews(true);
+            
         }
+
+
+        public void EditOutletFlow()
+        {
+            //m_dTopValue += 0.1;
+            //m_dBtmValue += 0.1;
+            //pDisplayView.edit2DMidCurve(m_dTopValue, m_dBtmValue);
+    
+            //pDisplayView.build2DMidCurveFillet(dAngle, m_dMPlnBasePtScaleValue, m_dMPlnOuterPtScaleValue);
+            //Invalidate(true);
+            //pDisplayView.FitAll3DViews(true); 
+        }
+ 
     }
 }

--
Gitblit v1.9.3