Fixed voxel calculation; added flipping
(closes #3650)