GTGRID User Guide > Reference > GTGETBOUNDS Function
  

GTGETBOUNDS Function
Retrieves the 3D bounding box from a gridded surface.
Usage
result = GTGETBOUNDS(surf_id)
Input Parameters
surf_id—(long) A valid ID for a gridded surface.
Returned Value
result—A (2,3) array defining the bounding box of the grid surface.
Keywords
Xmax—(float) Returns the maximum x value of the bounding box.
Xmin—(float) Returns the minimum x value of the bounding box.
Ymax—(float) Returns the maximum y value of the bounding box.
Ymin—(float) Returns the minimum y value of the bounding box.
Zmax—(float) Returns the maximum z value of the bounding box.
Zmin—(float) Returns the minimum z value of the bounding box.
Discussion
The value of surf_id is obtained from the Surf_id keyword in the GTGRID function or from the output of the GTINSTALLSURF function.
If you have lost the information on the x, y, and z vectors that were used to generate a given grid, the surface ID for that grid can be used with GTGETBOUNDS to obtain the original maxima and minima of your grid vectors. GTGETBOUNDS is also useful after restoring a surface from a file (GTRESTORESURF) to obtain the minima and maxima of the grid vectors for the surface.

Version 3.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.