Profile Picture

Grid surface

Posted By Manal Goyal 6 Years Ago
Author
Message
Manal Goyal
Question Posted 6 Years Ago
View Quick Profile
Forum Member

Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 29, Visits: 405
Hi,


Is it possible to place grid surface at a custom position in chart?



Something like this!!


Nevron Support
This post has been flagged as an answer
Posted 6 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 13 hours ago
Posts: 3,054, Visits: 4,009
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





Similar Topics


Reading This Topic