ILNumerics 绘制具有 (x,y,z) 坐标的曲面 [英] ILNumerics Drawing a surface having (x,y,z) coordinates

查看:47
本文介绍了ILNumerics 绘制具有 (x,y,z) 坐标的曲面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 C# 编程的新手.我有以下形式的点数组

I am really new in programming with C#. I have an Array of points in the following form

//一个包含点坐标的数组:

//An Array containing point coordinates:

double[,] graphData=new double[100,3];//图形数据的每个元素都包含一个点的坐标:

double[,] graphData=new double[100,3]; //Each element of graph data contain coordinate of a point:

graphData[1;:]=(x1,y1,z1);

graphData[1;:]=(x1,y1,z1);

我想用 ILNumerics 画一个曲面.我找不到这个案例的任何例子.你能帮我吗?

I wanna draw a surface using ILNumerics. I couldn't find any example for this case. Would you please help me?

推荐答案

已接受答案中发布的链接指向 ILNumerics 文档的过时部分,该部分现已过时.从版本 3 开始,表面使用了一个新的基于场景图的渲染 API.

The link posted in the accepted answer points to an outdated part of the ILNumerics documentation which is obsolete now. Up from version 3, surfaces utilize a new scene graph based rendering API.

文档:http://ilnumerics.net/surface-plots.html

然而,Roy Dictus 发布的链接可能有助于解释如何将您的数据转换为适合表面渲染的矩阵形状的数据.

However, the linke posted by Roy Dictus may help in explaining how to turn your data into matrix shaped data, suitable for surface rendering.

基本上,曲面会根据 矩阵 形状的输入数据创建网格.它根据输入点在输入矩阵中的位置连接输入点.因此,您不必提供点列表:

Basically, surfaces create a mesh based on the matrix shaped input data. It connects the incoming points according to their location in the input matrix. So instead of a list of points you have to provide:

  • Z 值的单个矩阵,如果仅呈现高度值的规则网格,或
  • 非规则网格和参数曲面的 Z、X 和 Y 值具有相同形状的矩阵.

这篇关于ILNumerics 绘制具有 (x,y,z) 坐标的曲面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆