add function to generates points from line. Included from shape_math.cpp in svg converter repo