Voxel Terrain Generation + Procedural Cave Generation

I just stumbled upon this post. This was made a long time ago, but I’m wondering; how did you find the positions for the grass?