How to find if a mesh is falling on or outside a boundary of a another mesh

I have a given irregular polygon (here L shape and can be of any shape) composed of polygon in 2d.

i need to draw multiple grounds inside it so that they should not overlap each other, and also should not fall/intersect on or outside the boundary of L shape.

How can i determine if a inner ground is falling outside the outside mesh (L shape).

https://www.babylonjs-playground.com/#16MOW9#27

Hi @amoebageek, pinging @Evgeni_Popov to see if he has an idea.

It seems you need an algorithm that checks if a polygon is entirely contained into another one. See for eg javascript - Check if polygon is inside a polygon - Stack Overflow