CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
442 stars 28 forks source link

Don't put long connective TSP stitches underneath hatching #8

Closed golanlevin closed 4 years ago

golanlevin commented 4 years ago

So, this might be a tough one: A problem is the long TSP connective stitches being sewn UNDERNEATH a hatch. You can see that in this picture:

Screen Shot 2020-06-07 at 11 29 34 PM

It is essentially impossible to remove those long connectors later, if they are sewn under a hatch. But they can be quite visible, which is the (aesthetic) problem. Can you imagine any way to avoid this?

One way Lingdong can think of is to add it as an optimization goal to the TSP: minimize number of crossing between connective stitches and real stitches. But: how to optimize for that parallel to the TSP goals yet, other than simply doing a lot more trials and pick the best one?

tatyanade commented 4 years ago

Just saw this & will keep thinking on this but one possible way might be to prompt the user to cut the thread before it continues with hatching if there is a long TSP connector - the machine prompts you to cut the thread at the beginning of embroidering per file, and after it tells you to replace or swap thread, not sure if this is something that can be prompted on purpose by the file.

LingDong- commented 4 years ago

I believe some of the embroidery formats has a "jump" instruction, not sure if it translates to a prompt for the user to cut the thread. I think maybe a quick hack is to add a color-change op code between long connectors, so the machine stops and tells you to swap thread, but you don't swap thread and just cut thread. (mainly imagining here, not sure how the machine actually works)

golanlevin commented 4 years ago

Ignore this issue. What we want is SATIN, and you did it.