CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
442 stars 28 forks source link

Bitmap Results #25

Closed tatyanade closed 4 years ago

tatyanade commented 4 years ago

Here's the first run; Ill finesse some of the values and re-embroider 2020-06-14_21h57_04

Got an error with this one: 2020-06-14_21h57_44

I cant embroider this; whenever I try to open the file on the machine it tells me "Embroidery too large', which is a peculiar error that I don't believe has anything to do with physical size so I'd assume the file contains to much information?

2020-06-14_21h56_45 For the parallel strokes, would it be possible to implement a staggering similar to the offset on fill so that the thread ends are not right next to each other?

2020-06-14_21h56_32 Dense concentric hatch warps the fabric at three points, will see if this goes away with adjusting value

2020-06-14_21h56_37 2020-06-14_21h56_55 2020-06-14_21h56_15 2020-06-14_21h56_24

tatyanade commented 4 years ago

More results; just with Parallel filling;

2020-06-14_22h39_33 2020-06-14_22h44_00

Hatch Spacing of 1.5 and thread length of 50 seems to give consistently good results.

One thing I noticed is for the break down the middle, it is really only apparent then it is perpendicular to the hatch angle, but when it is parallel it's hidden. this may also have to do with the size.

golanlevin commented 4 years ago

@tatyanade : According to this manual for the Viking Jade 35, regarding the error, "Embroidery too large":

"This pop-up message appears if the size of the design you are trying to load is too large or if the design contains too many stitches. Your machine can load designs containing up to 50,000 stitches. Press the OK button to close the pop-up and select another design."

I would advise fiddling with the setStitch() and hatchSpacing() functions to see if you can reduce the number of stitches? Even so, I have a hard time believing that we've exceeded 50K stitches with that one design.

@LingDong- : could you please add an option like E.VERBOSE=true which prints out extra details for the optimize() and endDraw() steps? OR, could you make a function E.printStats() which reports about the number of stitches and the total length of thread that a design consumes?

LingDong- commented 4 years ago

Hi @golanlevin,

Added: b71468b9b746ba10009f79a710c42a51aa5f608f

E.printStats();

total number of polylines:  1089
total number of stitches:  61490
total length of thread in main design:  174213.11
total length of connective threads:  49227.406
total length of thread consumed IRL:  223440.52
Screen Shot 2020-06-15 at 5 15 23 PM

Looks like we actually got over the 50K limit!

golanlevin commented 4 years ago

Thanks for making printStats(), that's perfect. @tatyanade , please note this helpful new function.