我被困在 ILSurface 中绘制表面。场景如下:
绘制不规则网格:
float[] x = new float[sizeX]; // filled with timestamps
float[] y = new float[sizeY]; // filled with values
float[,] z = new float[sizeX, sizeY]; // filled with values mapped by [x,y]
ILInArray<float> inX = ILMath.array(x);
ILInArray<float> inY = ILMath.array(y);
ILInArray<float> inZ = ILMath.meshgrid(inX * inY, inX, inY);
// how do i fill the inZ with z[,]?
ILRetArray<float> outMesh = ILMath.meshgrid(inX, inY, inZ, null, null);
plotCube.Add(new ILSurface(outMesh, null, null, null, null));
// plotCube already attached to the scene, and the scene with the ILPanel
ilPanel1.Refresh();
想要将它映射到一个数组中,以便它可以绘制在ILSurface
.
我已经尝试了一些ILMath.meshgrid
来填补ILInArray<double> ZXYArray
没有成功。
希望我已经清楚了。欢迎任何帮助。
谢谢。