 | CVOXGetGridSectionCellSizes Method |
Get default cell sizes in X and Y for a section grid.
Namespace:
GeoEngine.Core.GXNetX
Assembly:
geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic void GetGridSectionCellSizes(
double az,
ref double cell_size_x,
ref double cell_size_y
)
public void GetGridSectionCellSizes(
double az,
ref double cell_size_x,
ref double cell_size_y
)
Public Sub GetGridSectionCellSizes (
az As Double,
ByRef cell_size_x As Double,
ByRef cell_size_y As Double
)
Public Sub GetGridSectionCellSizes (
az As Double,
ByRef cell_size_x As Double,
ByRef cell_size_y As Double
)
public:
void GetGridSectionCellSizes(
double az,
double% cell_size_x,
double% cell_size_y
)
public:
void GetGridSectionCellSizes(
double az,
double% cell_size_x,
double% cell_size_y
)
member GetGridSectionCellSizes :
az : float *
cell_size_x : float byref *
cell_size_y : float byref -> unit
member GetGridSectionCellSizes :
az : float *
cell_size_x : float byref *
cell_size_y : float byref -> unit
Parameters
- az
- Type: SystemDouble
Input section azimuth (degrees CCW from North) - cell_size_x
- Type: SystemDouble
Returned X cell size (horizontal) in m - cell_size_y
- Type: SystemDouble
Returned Y cell size (vertical) in m
Remarks
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.
See Also