![](../icons/Help.png) | 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.GXNetXAssembly: 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).
Syntaxpublic 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
)
Public Shared Sub VoxelSection (
gxNetShared As CGXNETCore,
db As CDB,
line As Integer,
x_ch As Integer,
y_ch As Integer,
vox As CVOX,
grid As String,
cell_x As Double,
cell_y As Double,
interp As Integer
)
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
)
static member VoxelSection :
gxNetShared : CGXNETCore *
db : CDB *
line : int *
x_ch : int *
y_ch : int *
vox : CVOX *
grid : string *
cell_x : float *
cell_y : float *
interp : int -> unit
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