Split a spline to equal length parts

I have a shape's border as a spline, and I would like to put points with equal distance between each sequential points on it.

An analogue example would be to bend a string with equidistant knots or a tape-measure over the shape.

How can I do that?