Ported voxlap.c up to 9629 line.