script to gen sphere mesh with qhull
improve gdist bin, add max distance option