Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoroute for Running Stitch #373

Open
kaalleen opened this issue Jan 6, 2019 · 8 comments
Open

Autoroute for Running Stitch #373

kaalleen opened this issue Jan 6, 2019 · 8 comments

Comments

@kaalleen
Copy link
Collaborator

@kaalleen kaalleen commented Jan 6, 2019

Let's say we want e.g. this https://openclipart.org/detail/288569/floral-hearts-line-art image to be embroidered with running stitch. Just for fun I tested how it would look like:

running-stitch-order

It would be a hell of a job to get the stacking order right. Is there a possibility to achieve an autoroute routine just as the one we have for satin columns?

In combination with the centerline trace plugin it would be a great tool to quickly achieve line art embroidery from images.

@lexelby
Copy link
Member

@lexelby lexelby commented Jan 6, 2019

I was just thinking along these lines the other day, actually. At @wwderw's urging, I added support for running stitch in Auto-Route Satin before releasing it. I'm not sure without looking at the code but I think there's nothing to stop you from running auto-route with only running stitch objects.

What happens if you run center-line trace on that image and set all the resulting lines to dashed, then run auto-route on it? It might just work. With such a big image, it might take an hour or two to run though...

@lexelby
Copy link
Member

@lexelby lexelby commented Jan 6, 2019

On second thought, no it won't work. The running stitch support in auto-route satin is intended for travel between satins. It won't break up a running stitch in the middle in order to connect to another one.

I'll think on this a bit. It might be possible to adapt auto-route satin to fit this use case. If not, it should be fairly easy to write an extension specifically to handle auto-routing huge numbers of running stitch objects like this.

@kaalleen
Copy link
Collaborator Author

@kaalleen kaalleen commented Jan 15, 2019

That'd be nice! :)

@kaalleen kaalleen changed the title Running Stitch Autoroute Autoroute for Running Stitch Apr 12, 2020
@kaalleen kaalleen added this to tasks / features in Feature Requests May 16, 2020
@kaalleen kaalleen moved this from tasks / features to Element Handling in Feature Requests May 19, 2020
@Tina-Chris
Copy link

@Tina-Chris Tina-Chris commented Nov 30, 2020

Just a note from me, I was just thinking about the same. It took me ages to properly route a line drawing, and this would be so awesome!

@LochanLoch
Copy link

@LochanLoch LochanLoch commented Nov 30, 2020

"easy" test a star ... 107path and its possible to draw it in a single line but I found no auto importer to do it right ;-)
AtomStern107TeileSVG

@Tina-Chris
Copy link

@Tina-Chris Tina-Chris commented Nov 30, 2020

Do you mean that it does not work to have it automatically with an easy method? I'm not sure about the meaning of your text?

@Tina-Chris
Copy link

@Tina-Chris Tina-Chris commented May 6, 2021

https://www.geeksforgeeks.org/python-program-for-dijkstras-shortest-path-algorithm-greedy-algo-7/ I have no idea if this helps but I thought I contribute this anyway. Maybe we can use it for this kind of work?

@lexelby
Copy link
Member

@lexelby lexelby commented May 6, 2021

Oh, certainly. We already use dijkstra in the auto-route satin code. The networkx library does that for us :)

I don't think there will be any new programming puzzles to solve for Auto-Route Running Stitch, someone just needs to write it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Feature Requests
Element Handling
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants