Click or drag to resize
CDUVoxelSection Method
Slice a voxel to a grid under a database line.

Available since Oasis montaj version: 6.4
License: Available to anyone with an Oasis Montaj license.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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).
Syntax
public static void VoxelSection(
	CGXNETCore gxNetShared,
	CDB db,
	int line,
	int x_ch,
	int y_ch,
	CVOX vox,
	string grid,
	double cell_x,
	double cell_y,
	int interp
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
db
Type: GeoEngine.Core.GXNetXCDB
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.GXNetXCVOX
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
See Also