Save realloc's in ClipXY by malloc-ing the maximum of 2 * num_vertices.