Compactness measure of a shape