get_voxel_center_coords

macromol_voxelize.get_voxel_center_coords(grid, voxels)[source]

Calculate the center coordinates of the given voxels.

Parameters:
  • grid – An object specifying the size and location of each voxel.

  • voxels – An integer array of dimension \((N, 3)\) specifying the indices of the voxels to calculate coordinates for.