added automatic external facets partition for cubes