Schema Functions

Functions:

MTK_BlockModel_GetSchemaDimensions

int MTK_BlockModel_GetSchemaDimensions(
			MTK_BlockModel* bmodel,
			const int& nsch,
			double* ix, double* iy, double* iz
			);
		

Description

Get dimensions of a schema.

Parameters

bmodel

pointer to an MTK_BlockModel struct

nsch

schema index to query (int)

ix, iy, iz

the number of blocks in each direction (double*)

Return Value

0

successful

other

failure

MTK_BlockModel_GetSchemaExtent

int MTK_BlockModel_GetSchemaExtent(
			MTK_BlockModel* bmodel,
			const int& nsch,
			double* x0, double* y0, double* z0,
			double* x1, double* y1, double* z1
			);
		

Description

Get specific schema extent.

Parameters

bmodel

pointer to an MTK_BlockModel struct

nsch

schema index to query (int)

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

successful

other

failure

MTK_BlockModel_GetSchemaSizes

int MTK_BlockModel_GetSchemaSizes(
			MTK_BlockModel* bmodel,
			const int& nsch,
			double* minx, double* miny, double* minz,
			double* maxx, double* maxy, double* maxz
			);
		

Description

Get specific schema sizes (min/max).

Parameters

bmodel

pointer to an MTK_BlockModel struct

nsch

schema index to query (int)

minx, miny, minz

lower limit (double*)

maxx, maxy, maxz

upper limit (double*)

Return Value

0

successful

other

failure

MTK_BlockModel_NSchemas

int MTK_BlockModel_NSchemas(MTK_BlockModel* bmodel);
		

Description

Number of schemas.

Parameters

bmodel

pointer to an MTK_BlockModel struct

Return Value

int

number of schemas

-1

failed