zoukankan      html  css  js  c++  java
  • 基于等高线算法绘制几何管道,并显示数据

    本文主要是基于数值着色与等高线特征,用数值绘制3D等高线网格图。以下是如何利用LightningChart绘制几何管道图并显示数据,以及提供相应的源代码。

    此图是结果图例,显示温度冷热程度及数据

    以下是绘制此图的源代码

    LightningChartUltimate _chart = new LightningChartUltimate();

                _chart.BeginUpdate();

               

                //Create Surface mesh

                _mesh = new SurfaceMeshSeries3D(v, Axis3DBinding.Primary, Axis3DBinding.Primary, Axis3DBinding.Primary);

                //CONTOURS

                _mesh.ContourLineType = ContourLineType3D.ColorLineByValue;

                _mesh.ContourLineWidth = 1.5;

                //WIREFRAME           

                _mesh.WireframeType = SurfaceWireframeType.Wireframe;

                _mesh.WireframeLineStyle.Width = 3;

                _mesh.WireframeLineStyle.Color = Color.FromArgb(20, Color.Black);

                _mesh.WireframeOffset.SetValues(0, 0, 0);

               

                //FILL

                _mesh.ColorSaturation = 80;

                _mesh.Fill = SurfaceFillStyle.PalettedByValue;        

               

                //Discontinuity is caused by surface mesh...end meeting each other, and data is not fluently continous over that.

    InitializePalette();

                double[,] x = null;

                double[,] y = null;

                double[,] z = null;

                double[,] values = null;

                CreateGeometryPipe(out x, out y, out z);

                CreateValuesWaterDrops(out values);

                UpdateMesh(x, y, z, values);

                v.SurfaceMeshSeries3D.Add(_mesh);

               

               

                v.YAxisPrimary3D.Units.Text = "°C";

                _chart.EndUpdate();

     

    总结

    等高线地形图可综合应用于判断通视情况,水系水文特征,气候特征,地形状况与区位的选择(线、面 )。此3D几何图是用来判断气候特征的,非常直观。

  • 相关阅读:
    [CLR via C#]5.2 引用类型和值类型
    Yii easyWechat 开发的时候报错:cURL error 60: SSL certificate problem: unable to get local issuer certificat
    前端浏览器自动刷新神器:Browsersync
    phpStudy 切换版本后没有权限的问题
    最全的CSS浏览器兼容问题
    (转)详解JS位置、宽高属性之一:offset系列
    js 跨域问题
    移动端IOS 固定下方的输入框,点击输入框位置会变的修复
    ie8网页时调用特定的css文件
    Bootstrap如何禁止响应式布局 不适配
  • 原文地址:https://www.cnblogs.com/lightningchart/p/6863458.html
Copyright © 2011-2022 走看看