single_cell_parser
❭ scalar_field
❭ ScalarField
❭ get_mesh_coordinates
ScalarField.get_mesh_coordinates
-
single_cell_parser.scalar_field.ScalarField.get_mesh_coordinates(xyz)
Fetch the mesh index of the voxel containing the point xyz.
Warning
This method does not perform range checking.
If xyz
is outside the bounding box, the index will be out of bounds for the mesh
.
- Parameters:
xyz (tuple) – The 3D coordinates of the point.
- Returns:
The mesh
index of the voxel containing the point.
- Return type:
tuple