GXVOXE class

class GXVOXE(handle=0)

GXVOXE class.

GXVOX evaluator class. Used to sample values from the voxel.

classmethod create(vox)

Create a handle to an GXVOXE object

Parameters:vox (GXVOX) – GXVOX Object
Returns:GXVOXE handle, terminates if creation fails
Return type:GXVOXE

New in version 6.3.

License: Geosoft Open License

is_null()

Check if this is a null (undefined) instance

Returns:True if this is a null (undefined) instance, False otherwise.
Return type:bool
classmethod null()

A null (undefined) instance of GXVOXE

Returns:A null GXVOXE
Return type:GXVOXE
profile(vv_x, vv_y, vv_z, vv_d, interp)

Extract a profile of data along points provided.

Parameters:

New in version 6.3.

License: Geosoft Open License

value(x, y, z, interp)

Get a value at a specific point

Parameters:
  • x (float) – X Location
  • y (float) – Y Location
  • z (float) – Z Location
  • interp (int) – VOXE_EVAL constants
Returns:

Value at the point or DUMMY if not valid

Return type:

float

New in version 6.3.

License: Geosoft Open License

vector(ox, oy, oz, vx, vy, vz, vv, interp)

Extract a profile of data along a vector

Parameters:
  • ox (float) – X Origin
  • oy (float) – Y Origin
  • oz (float) – Z Origin
  • vx (float) – X Delta
  • vy (float) – Y Delta
  • vz (float) – Z Delta
  • vv (GXVV) – Data GXVV (must be double)
  • interp (int) – VOXE_EVAL constants

New in version 6.3.

License: Geosoft Open License

VOXE_EVAL constants

Voxel Evaluation modes

VOXE_EVAL_NEAR

Nearest value

gxapi.VOXE_EVAL_NEAR = 0
VOXE_EVAL_INTERP

Linear Interpolation

gxapi.VOXE_EVAL_INTERP = 1
VOXE_EVAL_BEST

Best Interpolation

gxapi.VOXE_EVAL_BEST = 2