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

First stitch is not written to output #173

Open
evanreierson opened this issue Apr 25, 2024 · 0 comments
Open

First stitch is not written to output #173

evanreierson opened this issue Apr 25, 2024 · 0 comments

Comments

@evanreierson
Copy link

It appears that the first stitch in a pattern and the first stitch after a move is not written to the output. I am new to machine embroidery-- is this expected?

For example,

import pyembroidery as pyemb

def stitch_square (pattern):
    #pattern.stitch(0, 0)
    pattern.stitch(0, 10)
    pattern.stitch(10, 0)
    pattern.stitch(0, -10)
    pattern.stitch(-10, 0)

pattern = pyemb.EmbPattern()

stitch_square(pattern)
pattern.move(20, 0)
stitch_square(pattern)
pattern.end()

pyemb.write(pattern, "example.png")

Produces this:
image

However, when pattern.stitch(0,0) is un-commented at the beginning of stitch_square, the output is as I expect it:
image

I see the same behavior when writing to different outputs (I have tried .exp and .dst) and using a 3rd-party renderer.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant