Hi I went through the documentation on the surface grid and still kind of confused about some thing.
I have a a sets of datapoints (x,y,z), (x1,y1,z1) that I want to plot on a Grid to make a 3d surface , where the z value will be the elevation. I saw a couple of examples but they all use indexes.
My values x, y are non-integer.
So in my code:
xarray[] is the array of x values.
yarray[] is the array of y values
zarray[] is the array of z values
for ( int i =0 ; i< xarray.Length ; i++)
{
for ( int j =0 ; i < yarray.Length ; j++)
{
surface.Data.Setvalue ( xarray[i], yarray[j] , zarray[i*xarray.Length + j]);
}
}
it keeps complaining that xarray[i] , yarray[j] are non integer values and should be indexes.
Can you please point me to the correct direction how I would do something like that?
Thanks
Imported from legacy forums. Posted by Spyros (had 2035 views)