c#怎么画三维图形

来源:百度知道 编辑:UC知道 时间:2024/06/25 01:49:33
类似于plot(x,y,z)的功能。。
就像http://www.codeproject.com/KB/openGL/ntgraph3d_atl.aspx
这里实现的很好。
但是我的C#不知道怎么调用
或者有没有别的可以直接使用的控件,能绘制三维的曲面。
我不需要太复杂的功能,仅仅是根据三维数据点,显示曲面。。

下面是一个GDI+ 面图例子:
//自动 加载OnPaint(PaintEventArgs e)事件

protected override void OnPaint(PaintEventArgs e)//override重写
{
Rectangle rectangleBounds = new Rectangle(new Point(0, 0),
      new Size(200, 200));
Rectangle ellipseBounds = new Rectangle(new Point(50, 200),
       new Size(200, 150));
Pen bluePen = new Pen(Color.Blue, 3);
Pen redPen = new Pen(Color.Red, 2);
Brush solidAzureBrush = Brushes.Azure;
Brush solidYellowBrush = new SolidBrush(Color.Yellow);
Brush brickBrush = new HatchBrush(HatchStyle.DiagonalBrick,
       Color.DarkGoldenrod, Color.Cyan);
Pen brickWide