Skip to content

How to sort polylines for most optimal total path? #19

@stephanschulz

Description

@stephanschulz

Hey
I was wondering if you can suggest a good way to sort the resulting polyline vector from polylines = ofxTraceSkeleton::trace(im); in such a way that a xy plotter could draw the most efficient path through all of the polylines?
Currently the order is all jumbled.

Dec-15-2021 18-38-42
Here is a small test I did in OpenFrameworks.

I am sure you have already done something like this for https://github.com/CreativeInquiry/PEmbroider

Thanks a bunch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions