generalization: keeps a given number of vtx