handle voronoi returning undefined points in some cases