MATLAB: Can I create points on polygon with specific distance between them

2dpolygondata pointsdata processingimage processingpolypolygon

Can someone help to make function to create points with specific distanace from each other on a polygon made of points in XY-plane with random distance between them.
for example: if I have the blue polygon made of X and Y point (file attached) as in the pictures1, can I create points (red) in as in picture 2. with distance D between them?
Picture 1
Picture 2

Best Answer

This is what interparc does. See John D'Errico's File Exchange: interparc