ILNumerics Drawing a surface having (x,y,z) coordinates

有些话、适合烂在心里 提交于 2019-12-24 06:58:08

问题


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]; //Each element of graph data contain coordinate of a point:

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

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


回答1:


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.

Documentation: http://ilnumerics.net/surface-plots.html

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:

  • a single matrix of Z values, if a regular grid of heights values is to be rendered only, or
  • same shaped matrices for Z, X and Y values for non-regular grids and parametric surfaces.



回答2:


How to plot a 3D Surface using ILNumerics: http://ilnumerics.net/forum/index.php?p=/discussion/163/how-to-plot-a-3d-surface-/p1



来源:https://stackoverflow.com/questions/18830352/ilnumerics-drawing-a-surface-having-x-y-z-coordinates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!