Definition Functions
Functions:
MTK_BlockModel_GetModelExtent
int MTK_BlockModel_GetModelExtent( MTK_BlockModel* bmodel, double* x0, double* y0, double* z0, double* x1, double* y1, double* z1 );
Description
Gets the model extent in model coordinates.
Parameters
bmodel
pointer to an MTK_BlockModel struct
x0
lower left x coordinate (double*)
y0
lower left y coordinate (double*)
z0
lower left z coordinate (double*)
x1
upper right x coordinate (double*)
y1
upper right y coordinate (double*)
z1
upper right z coordinate (double*)
Return Value
0
success
other
failure
MTK_BlockModel_GetModelOrientation
int MTK_BlockModel_GetModelOrientation( MTK_BlockModel* bmodel, double* dip, double* plunge, double* bearing );
Description
Gets the model orientation.
Parameters
bmodel
pointer to an MTK_BlockModel struct
dip
dip of the block model (double*)
plunge
plunge of the block model (double*)
bearing
bearing of the block model (double*)
Return Value
0
success
other
failure
MTK_BlockModel_GetModelOrigin
int MTK_BlockModel_GetModelOrigin( MTK_BlockModel* bmodel, double* x, double* y, double* z );
Description
Gets the model origin
Parameters
bmodel
pointer to an MTK_BlockModel struct
x
x coordinate (double*)
y
y coordinate (double*)
z
coordinate (double*)
Return Value
0
success
other
failure
MTK_BlockModel_IsStratigraphicModel
int MTK_BlockModel_IsStratigraphicModel(MTK_BlockModel* bmodel);
Description
Checks if the block model has infinite Z sub-blocking.
Parameters
bmodel
pointer to an MTK_BlockModel struct
Return Value
1
it is
0
it is not
-1
failed