Backport all of MeshToVolume.h from master to fix bug 61677