tangxu
2024-12-24 91105b77c916d06dd30380e20594e29f85eae3da
WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesign3DCtrl.cs
@@ -28,28 +28,59 @@
            bool bSucc = pDisplayView.BeginTurbopumpTopoShape(strTurbopumpTopoShapeName);
            //OnSectiondesignbutton();
            //OnBuildsolidbutton();
        }
        public void CreateOutflowBody(HydrEngineCSharp.BcGePoint thePt)
        public void CreateWaterBody(HydrEngineCSharp.BcGePoint theMPlnBasePt, HydrEngineCSharp.BcGePoint theMPlnOuterPt)
        {
            //HydrEngineCSharp.BcGePoint thePt = new HydrEngineCSharp.BcGePoint(75.660892F, 283.1167F, 0.0F);
            /*pDisplayView2d.build2DSegmentCurve(dOuterOffset, dOuterHigh, dOuterRad);75.660892, 283.1167
            Invalidate(true);
            pDisplayView2d.FitAll3DViews(true);
            HydrEngineCSharp.BcGePoint thePt = pDisplayView2d.get2DSegmentInterPt();*/
            //double dOuterOffset = theOffset;
            //double dOuterHigh = theHigh;
            //double dOuterRad = theRad;
            //if (CreateOutflowBodyConnect())
            //{
            //    pDisplayView.buildVoluteOuterSolid(thePt, ShapeNameOutflowBody, m_dTopValue, m_dBtmValue);
            //double theRad = 80.0;
            //double theHigh = 520.0;
            //double theOffset = 0.0;
            //double dTopValue = 1.0;
            //double dBtmValue = 1.0;
            //double dMPlnBasePtScaleValue = 2.0;
            //double dMPlnOuterPtScaleValue = 2.0;
            //WaterBodyOuterParam theWaterBodyOuterParam = new WaterBodyOuterParam();
            //theWaterBodyOuterParam.SetOuterOffset(theOffset);
            //theWaterBodyOuterParam.SetOuterHigh(theHigh);
            //theWaterBodyOuterParam.SetOuterRad(theRad);
            //theWaterBodyOuterParam.SetTopValue(m_dTopValue);
            //theWaterBodyOuterParam.SetBtmValue(m_dBtmValue);
            //    string wstrName = "水体";
            //    string wstrShapeNameI = wstrName;
            //    HydrGeomCurve theHydrGeomCurve = HydrDisplayEngineBridge.CreateGeomCurve(HydrCurveType.EHydrGeomCircle);
            //    HydrProperties theHydrProperties = new HydrProperties();
            //    theHydrProperties.SetShapeName(wstrShapeNameI);
            //    theHydrGeomCurve.SetHydrProperties(theHydrProperties);
            //    pDisplayView.buildWaterBody(wstrShapeNameI, m_dMPlnBasePtScaleValue, m_dMPlnOuterPtScaleValue, theMPlnBasePt, theMPlnOuterPt, theWaterBodyOuterParam);
            //    Invalidate(true);
            //    pDisplayView.FitAll3DViews(true);
            //}
        }
        public void EditOutletFlow(HydrEngineCSharp.BcGePoint theMPlnBasePt, HydrEngineCSharp.BcGePoint theMPlnOuterPt)
            //public void edit3DMidCurve(double dMPlnBasePtScaleValue, double dMPlnOuterPtScaleValue, HydrEngineCSharp.BcGePoint theMPlnBasePt, HydrEngineCSharp.BcGePoint theMPlnOuterPt, double dTopValue, double dBtmValue)
        {
                //pDisplayView.rebuildWaterBody(m_dMPlnBasePtScaleValue, m_dMPlnOuterPtScaleValue, theMPlnBasePt, theMPlnOuterPt, m_dTopValue, m_dBtmValue);
                //Invalidate(true);
                //pDisplayView.FitAll3DViews(true);
        }
        double dThickness = 10;
        public void CreateOutletBody3d()
        {
            int nVoluteNum = 0;
            string wstrVoluteName = "加厚体" + (nVoluteNum).ToString();
            bool bSucc = pDisplayView.buildThicknessBody(wstrVoluteName, dThickness);
            if (bSucc)
            {
                Invalidate(true);
                pDisplayView.FitAll3DViews(true);
            }
        }
    }
}