Definition

Functions related to block model definitions.

MTK_BlockModel_GetModelExtent()

Opens a block model.

Signature
int MTK_BlockModel_GetModelExtent(
    MTK_BlockModel* bmodel,
    double* x0, double* y0, double* z0,
    double* x1, double* y1, double* z1
    );
Parameters
  • bmodel: Pointer to an MTK_BlockModel struct.

  • x0: Lower left x-coordinate

  • y0: Lower left y-coordinate

  • z0: Lower left z-coordinate

  • x1: Upper right x-coordinate

  • y1: Upper right y-coordinate

  • z1: Upper right z-coordinate

Returns

0 on success; any other value indicates failure.

MTK_BlockModel_GetModelOrientation()

Gets the orientation of a given block model.

Signature
int MTK_BlockModel_GetModelOrientation(
    MTK_BlockModel* bmodel,
    double* dip, double* plunge,
    double* bearing
    );
Parameters
  • bmodel: Pointer to an MTK_BlockModel struct.

  • dip: The dip of the block model.

  • plunge: The plunge of the block model.

  • bearing: The bearing of the block model.

Returns

0 on success; any other value indicates failure.

MTK_BlockModel_GetModelOrigin()

Gets the origin of a given block model.

Signature
int MTK_BlockModel_GetModelOrigin(
    MTK_BlockModel* bmodel,
    double* x, double* y, double* z  
    );
Parameters
  • bmodel: Pointer to an MTK_BlockModel struct.

  • x: The x-coordinate of the origin.

  • y: The y-coordinate of the origin.

  • z: The z-coordinate of the origin.

Returns

0 on success; any other value indicates failure.

MTK_BlockModel_IsStratigraphicModel()

Checks whether a block model is a stratigraphic model. Stratigraphic block models have infinite Z sub-blocking.

Signature
int MTK_BlockModel_IsStratigraphicModel(MTK_BlockModel* bmodel);
Parameters
  • bmodel: Pointer to an MTK_BlockModel struct.

Returns
  • 1: The model is a stratigraphic model.

  • 0: The model is not a stratigraphic model.

  • -1: Failed