I would like to display data from .txt file (thousands of points [x,y,z] no exact length) in 3D by ILNumerics.
1) How to use StreamReader to choose only some data (e.g. all where y = <200,300>) and save them to Array
2) Then I would like to use Array from 1) and display it with code like this
private void ilPanel1_Load(object sender, EventArgs e)
{
double[,] a = new double[2, 3] { { 1.0f, 2.0f, 3.0f }, { 1.0f, 2.0f, 3.0f } };
ILArray<float> A = a; // this should make ILNumerics Array from my Array a - didnt worked when I used List
var scene = new ILScene {
new ILPlotCube(twoDMode: false) {
new ILPoints {
Positions = A,
Size = 4,
}
}
};
ilPanel1.Scene = scene;
}
I would be grateful even for ideas how to solve this.