chenn
2025-03-27 75263eb2d74528acf0086ddf2d8eab89fcecd8fb
WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesignBaseCtrl.cs
@@ -155,8 +155,7 @@
            else
            {
                return EditSectShape18(bundle);
            }
            }
        }
        protected double _sectStartAngle = -HydrDisplayEngineBridge.PI_4;
        public double SectStartAngle
@@ -386,7 +385,36 @@
        #region 水体
        public bool Create2DWaterBody(HydrEngineCSharp.WaterBodyOuterArcParam pHydrGeomArcCurve)
        {
            if (this._is3D)
                return false;
            ToolTips theToolTips = this.pDisplayView.build2DMidCurve(pHydrGeomArcCurve);
            if (theToolTips == null)
                return false;
            Invalidate(true);
            pDisplayView.FitAll3DViews(true);
            pDisplayView.set2DMidCurveClr(
 DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBoudaryColor.R,
 DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBoudaryColor.G,
 DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBoudaryColor.B);
            if (theToolTips.GetTipsId() == 1)
            {
                return true;
            }
            else
            {
                MessageBox.Show(theToolTips.GetToolTips(), "提示");
                return false;
            }
        }
        public bool Create2DWaterBody(HydrEngineCSharp.WaterBodyOuterSpParam pHydrGeomCurve)
        {
            if (this._is3D)
@@ -412,6 +440,7 @@
            }
            else
            {
                MessageBox.Show(theToolTips.GetToolTips(), "提示");
                return false  ;
            }
        }
@@ -420,7 +449,7 @@
        {
            if (!this._is3D)
                return null;
            HydrProperties theHydrProperties = new HydrProperties();
            theHydrProperties.SetShapeGuid(DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBodyShapeName);
            theHydrProperties.SetShapeColor(
@@ -431,14 +460,37 @@
            if (pDisplayView.hasBuildThicknessBody())
                pDisplayView.ClearTopoShape(TopoTypeDisplay.EThicknessBody);
           var tt = pDisplayView.buildWaterBody(theHydrProperties, pHydrGeomCurve);
            if (tt.GetTipsId() != 1)
            {
            }
            Invalidate(true);
            pDisplayView.FitAll3DViews(true);
            return tt;
        }
        public HydrEngineCSharp.ToolTips Create3DWaterBody(HydrEngineCSharp.WaterBodyOuterArcParam pHydrGeomArcCurve)
        {
            if (!this._is3D)
                return null;
            HydrProperties theHydrProperties = new HydrProperties();
            theHydrProperties.SetShapeGuid(DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBodyShapeName);
            theHydrProperties.SetShapeColor(
             DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBodyColor.R,
             DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBodyColor.G,
             DPumpHydr.WinFrmUI.Volute.GlobalParas.WaterBodyColor.B, 256);
            if (pDisplayView.hasBuildThicknessBody())
                pDisplayView.ClearTopoShape(TopoTypeDisplay.EThicknessBody);
            var tt = pDisplayView.buildWaterBody(theHydrProperties, pHydrGeomArcCurve);
            if (tt.GetTipsId() != 1)
            {
            }
            Invalidate(true);
            pDisplayView.FitAll3DViews(true);
            return tt;
        }
        public HydrEngineCSharp.ToolTips Edit3DWaterBody(HydrEngineCSharp.WaterBodyOuterSpParam pHydrGeomCurve)
        {
            if (!this._is3D)
@@ -451,7 +503,26 @@
                return null;
            if (tt.GetTipsId() != 1)
            {
                MessageBox.Show(tt.GetToolTips(), "提示");
            }
            Invalidate(true);
            return tt;
        }
        public HydrEngineCSharp.ToolTips Edit3DWaterBody(HydrEngineCSharp.WaterBodyOuterArcParam pHydrGeomArcCurve)
        {
            if (!this._is3D)
                return null;
            if (pDisplayView.hasBuildThicknessBody())
                pDisplayView.ClearTopoShape(TopoTypeDisplay.EThicknessBody);
            var tt = pDisplayView.rebuildWaterBody(pHydrGeomArcCurve);
            if (tt == null)
                return null;
            if (tt.GetTipsId() != 1)
            {
                MessageBox.Show(tt.GetToolTips(), "提示");
            }
            Invalidate(true);