GXVOXE class

class GXVOXE(handle=0)[source]

GXVOXE class.

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

__init__(handle=0)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod create(vox)[source]

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()[source]

Check if this is a null (undefined) instance

Returns

True if this is a null (undefined) instance, False otherwise.

Return type

bool

classmethod null()[source]

A null (undefined) instance of GXVOXE

Returns

A null GXVOXE

Return type

GXVOXE

profile(vv_x, vv_y, vv_z, vv_d, interp)[source]

Extract a profile of data along points provided.

Parameters

New in version 6.3.

License: Geosoft Open License

value(x, y, z, interp)[source]

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)[source]

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