single_cell_parserscalar_fieldScalarFieldget_voxel_center

ScalarField.get_voxel_center

single_cell_parser.scalar_field.ScalarField.get_voxel_center(ijk)

Fetch the center of the voxel given by indices i,j,k.

Warning

Does not perform bounds checking. The voxel center may be outside the span of the mesh.

Parameters:

ijk (tuple) – tuple of 3 integers: the indices of voxel in mesh.

Returns:

The 3D coordinates of the center of the voxel.

Return type:

tuple