我有3个类型为float的Rx,Ry,Rz数组。 我正在尝试使用以下代码绘制曲面:
ILArray<float> y = Ry
ILArray<float> x = Rx
ILArray<float> z = Rz
ILArray<float> Z = ILMath.zeros<float>(x.S[0], x.S[1], 3);
Z[":;:;1"] = x;
Z[":;:;2"] = y;
Z[":;:;0"] = z;
var scene = new ILScene {
new ILPlotCube(twoDMode: false) {
new ILSurface(Z) {
Wireframe = { Color = Color.FromArgb(50, Color.LightGray) },
Colormap = Colormaps.Jet,
}
}
};
panel.Scene = scene;
但它什么都没画。 样本点:
z: 1 0,1111111 0,01111111 0,001010101 8,417508E-05 6,475007E-06 0,1111111 0,01388889 0,001984127
x: 3 4 5 6 7 8 2 1 0
y: 4 4 4 4 4 4 4 4 4
我正在尝试绘制这样的表面 http://cs618230.vk.me/v618230086/7b18/Q2aQP0uMPUg.jpg
答案 0 :(得分:0)
X,Y和Z必须是矩阵。从一些常规网格开始,然后将其更改,直到最终到达目的地。你看起来真的很可疑......