Point grid within irregular curves

Hi everyone, I am trying to create a script which allows me to extract a series of points within irregular curves by inputting the amount of points (density). These need to be laid on a regular grid with fixed distances. Can anyone point me in the right direction please?

PLANTING.gh (10.6 KB)

PLANTING.3dm (176.5 KB)