Grid with kangaroo2 not working

In this code, random points (and holes around them) are created before any mesh exists.