Rotations and bounding box transformation for 3d voxels

If I am performing a rotation on the voxel grid (C, W, H, D) and the associated bounding box is (N,6) where N is the number of instances, how would I handle the transforms for rotating the scene about the Height ie dim=2. It seems a simple rotation of the scene is not too complex and one can use permute() but I am not sure how to handle the changes in the Bounding boxes for the same