i have an byte[] that contains coordinates XYZ and i need to copy into 3D[, , ,] with these coordinates then convert it into it's original double value
something like that , mind it's just suedo code
buff = binReader.ReadBytes(384);
int length = BitConverter.ToInt32(buff, 0);
obj.coordinates = new double[length, length, length];
for (int i = 0; i < length; i++)
{
for (int k = 0; k < length; k++)
{
for (int j = 0; j < length; j++)
{
obj.coordinates[i, k, j].ToDouble() = buff[i];
}
}
}
any idea?