Skip to the content ForoHackers
Log inJoin

Three stitches and my preview stops at 3. Where did x=6 go?

Computer graphicsManufacturingReverse engineering
#22809 · · Quote · Report

I'm reading files written by my own embroidery editor for my converter. Three stitches end at x=1, 3 and 6 on paper, with all y values zero. A candidate field holds 1, 2, 3. My preview draws three stitches at 1, 2, 3. The hoop's in the cupboard until I know why.

#22835 · · Quote · Report

If they're signed increments, the preview wants x += dx before placing each stitch. Cumulative x goes 1, 3, 6. Try another design where x goes 1, 3, 2. The last increment should represent minus one. Three points all going right don't settle how negatives are encoded.

#22836 · · Quote · Report

@clavo_tibio Good catch. The negative move is a different flag followed by magnitude one, in this particular export. Rendering the accumulated deltas makes BOTH drawings match the paper. I still haven't said what that final blank record does.

#22837 · · Quote · Report

Prueba con el dibujo vacío y con sólo una puntada en el editor. Si el registro final aparece también vacío, podría señalar el fin del fichero. Que aparezca en ambas muestras aún no te dice que sea su única función.

#22838 · · Quote · Report

Empty export has the same final record. I'll label it "last in the three saved examples." Reverse engineering is going to run me out of sticky labels before it runs me out of opinions.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply