abey79 / vpype

The Swiss-Army-knife command-line tool for plotter vector graphics.
https://vpype.readthedocs.io/
MIT License
687 stars 61 forks source link

reloop puts the seams where the points are rather than spreading them uniformly over the length of the closed path #618

Open cbmoore opened 1 year ago

cbmoore commented 1 year ago

For a shape like a quarter circle, all but one of the points are along the arc so almost every seam is put along the arc. It would preferable (from a functionality standpoint) if the seams were evenly distributed over the length of the closed path rather than being distributed among the points that define it. If reloop is used after linesimplify, the effect is to make seams preferentially appear in regions of high curvature.

I acknowledge that this may be enough of an edge case to not be worth fixing for a general purpose tool like vpype and one could work around this by creating the path with points uniformly distributed along its length (independent of curvature) but I thought it was worth pointing out. You could also fix this by implementing something that does the opposite of linesimplify but I'm not sure I can think of any other use cases for such a thing.

abey79 commented 1 year ago

I will likely have to re-implement reloop for vpype 2. I'll keep this in mind.