If the input point set is degenerate, dimension() < 3 is always 'true' and we will eventually try to read beyond the end of the points vector. See issue https://github.com/CGAL/cgal/issues/2922