tangxu
2024-12-16 eedaa35483f7ec40022854ebeb1fbe3d119b5854
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HydrEngineCSharp;
 
namespace DPumpHydr.WinFrmUI.Volute
{
    public partial class OccDesign3DCtrl: OccDesignBaseCtrl
    {
        public OccDesign3DCtrl()
        {
            this._is3D = true ;
        }
        public override void Initial()
        {
 
            // 创建时的代码
            pDisplayView = new HydrEngineCSharp.CDisplayView();
 
            pDisplayView.InitOCCDraw();
            IntPtr hwnd = this.Handle;
            //IntPtr hwnd = splitContainer1.Handle;
            // 初始化更新代码
            pDisplayView.InitialUpdateOCC((uint)hwnd, this._is3D);
 
            bool bSucc = pDisplayView.BeginTurbopumpTopoShape(strTurbopumpTopoShapeName);
 
 
            //OnSectiondesignbutton();
 
            //OnBuildsolidbutton();
        }
 
        public void CreateOutflowBody(HydrEngineCSharp.BcGePoint thePt)
        {
            //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);
            //    Invalidate(true);
            //    pDisplayView.FitAll3DViews(true);
            //}
 
        }
    }
}