Generalized Whitney partitions