Hi Manal,
Yes - you can specify the origin point along the x / depth axes as well as the step for each grid cell. The following code shows how to position a surface to cover the range [0, 100] and [0, 100] along the x / depth axes:
double x1 = 0;
double x2 = 100;
double z1 = 0;
double z2 = 100;
if (gridSurface.Data.GridSizeX > 1 && gridSurface.Data.GridSizeZ > 1)
{
gridSurface.UseCustomXOriginAndStep = true;
gridSurface.OriginX = x1;
gridSurface.StepX = (x2 - x1) / (gridSurface.Data.GridSizeX - 1);
gridSurface.UseCustomZOriginAndStep = true;
gridSurface.OriginZ = z1;
gridSurface.StepZ = (z2 - z1) / (gridSurface.Data.GridSizeZ - 1);
}
Hope this helps - let us know if you have any questions.
Best Regards,
Nevron Support Team