我如何添加线条,就像我用ILNumerics绘制的画图一样?我的场景是用密码建造的:
ilPanel1.Scene = new ILScene()
{
new ILPlotCube(twoDMode: false)
{
new ILSurface(func,
xmin: (float)xmin,
xmax: (float)xmax,
ymin: (float)ymin,
ymax: (float)ymax,
xlen: 200,
ylen: 200,
colormap: Colormaps.ILNumerics),
}
};

编辑:
var line = ilPanel1.Scene.Camera.Add(Shapes.Line);
ILArray<float> angles = ILMath.linspace<float>(0, 6, 6);
ILArray<float> pos = ILMath.zeros<float>(1,1,1);
pos["0;:"] = (float)xt; pos["1;:"] = (float)yt;
pos["2;:"] = 0f;
line.Positions = pos;
line.Color = Color.Black;发布于 2015-04-20 21:11:04
它很简单:
ilPanel1.Scene.First<ILPlotCube>().Add(
new ILLines(/* do your line setup here */)
); 请参阅此处的形状文档:http://ilnumerics.net/drawable-nodes-shapes.html
https://stackoverflow.com/questions/29751574
复制相似问题