Click or drag to resize

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
Syntax
public 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
)

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