Click or drag to resize

CDUVoxelSection Method

Slice a voxel to a grid under a database line.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static void VoxelSection(
	CDB db,
	int line,
	int x_ch,
	int y_ch,
	CVOX vox,
	string grid,
	double cell_x,
	double cell_y,
	int interp
)

public static void VoxelSection(
	CDB db,
	int line,
	int x_ch,
	int y_ch,
	CVOX vox,
	string grid,
	double cell_x,
	double cell_y,
	int interp
)

Parameters

db
Type: GeoEngine.Core.GXNetCDB
Database Object
line
Type: SystemInt32
Input Line Symbol [READWRITE]
x_ch
Type: SystemInt32
X Channel (DB_NO_SYMB if LineDir==0)
y_ch
Type: SystemInt32
Y Channel (DB_NO_SYMB if LineDir==0)
vox
Type: GeoEngine.Core.GXNetCVOX
Voxel to slice
grid
Type: SystemString
Output grid name
cell_x
Type: SystemDouble
X cell size (horizontal)
cell_y
Type: SystemDouble
Y cell size (vertical)
interp
Type: SystemInt32
Interp: 1 - linear, 0 - nearest
Remarks
Takes the first and XY locations in a line (using the current X and Y channels) and defines a section grid as a slice through a voxel file. The grid cell sizes can be left as <define>GS_R8DM</define>, in which case an attempt will be made to match the voxel cell size, based on the line azimuth, voxel rotation, etc. If the slice does NOT intersect the voxel, or if there are fewer than 2 valid locations in the line, then no grid file is created, but there is no error. (This is to simplify creating multiple grids from at once, where not all may intersect).
See Also