 | 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
Syntaxpublic 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
)
Public Shared Sub VoxelSection (
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 Shared Sub VoxelSection (
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(
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
)
static member VoxelSection :
db : CDB *
line : int *
x_ch : int *
y_ch : int *
vox : CVOX *
grid : string *
cell_x : float *
cell_y : float *
interp : int -> unit
static member VoxelSection :
db : CDB *
line : int *
x_ch : int *
y_ch : int *
vox : CVOX *
grid : string *
cell_x : float *
cell_y : float *
interp : int -> unit
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