Ported voxlap.c up to 4748 line.