import torchmcubes_module as mc def marching_cubes(vol, thresh): """ vol: 3D torch tensor thresh: threshold """ if vol.is_cuda: return mc.mcubes_cuda(vol, thresh) else: return mc.mcubes_cpu(vol, thresh) def grid_interp(vol, points): """ Interpolate volume data at given points ...