ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/XYZ_gridding.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace Steema.TeeChart.Samples
{
  public class XYZ_Gridding : Steema.TeeChart.Samples.BaseForm
  {
    private Steema.TeeChart.Styles.Points3D points3D1;
    private Steema.TeeChart.Styles.Surface surface1;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.RadioButton radioButton1;
    private System.Windows.Forms.RadioButton radioButton2;
    private Steema.TeeChart.Tools.Rotate rotate1;
		private Steema.TeeChart.Tools.GridBand gridBand1;
    private System.ComponentModel.IContainer components = null;

    private void Fill()
    {
      points3D1.Clear();
      points3D1.BeginUpdate();
      try
      {
        int m = 40;
        double tmpz, tmpx, tmpy;

        for (int x=-m; x<m; x++)
        {
          tmpx = x*x/900.0;
          for (int z=-m; z<m; z++)
          {
            tmpz = z*z/900.0;
            tmpz = Math.Sqrt(tmpx+tmpz);
            tmpy = 4*Math.Cos(3*tmpz)*Math.Exp(-0.5*tmpz);
            points3D1.Add(x,tmpy,z);
          }
        }
      }
      finally
      {
        points3D1.EndUpdate();
      }
    }
  
    public XYZ_Gridding()
    {
      // This call is required by the Windows Form Designer.
      InitializeComponent();

      Fill();
      Grid3DUtils.CreateGrid(points3D1,surface1,15);
    }

    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    protected override void Dispose( bool disposing )
    {

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。