Click or drag to resize
CVOXGetGridSectionCellSizes Method
Get default cell sizes in X and Y for a section grid.

Available since Oasis montaj version: 6.4.0
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNet
Assembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
This function determines default cell sizes for a vertical grid slicing a voxel. It tries to match the "X" and "Y" sizes (in the grid coordinates) with the projection of the voxel's cells onto the grid plane. It uses a few simple rules: If the voxel is rotated about a horizontal axis (i.e. if its own "Z" axis is not vertical, then both cell sizes are set to the smallest voxel dimension (a single volume pixel) in X, Y and Z. If the voxel is "horizontal", then the angle between the section azimuth and the voxel's own X and Y axes is used to calculate a value which varies between the minimum X size and the minimum Y size, and this is used for the grid's "X" cell size. (in other words, if the section is parallel to the voxel "X" axis, then the returned "X" cells size is equal to the voxel's minimum "Y" cell size. The grid's "Y" cell size is set to the voxel's minimum "Z" cell size.
Syntax
public void GetGridSectionCellSizes(
	double d1,
	ref double d2,
	ref double d3
)

Parameters

d1
Type: SystemDouble
Input section azimuth (degrees CCW from North)
d2
Type: SystemDouble
Returned X cell size (horizontal) in m
d3
Type: SystemDouble
Returned Y cell size (vertical) in m
See Also