What determines the large-scale shape of minerals?