abetusk / gbr2ngc

No frills Gerber to GCode converter.
Other
38 stars 16 forks source link

Bug, and then not generate the output file #25

Open alphaonex86 opened 1 year ago

alphaonex86 commented 1 year ago

Hi, it bug with error: ERROR: jump pos MUST be > 0, is -1, exiting (start 2, n 155) ERROR: jump pos MUST be > 0, is -1, exiting (start 2, n 155) Command: gbr2ngc --input nuco-v-F_SilkS.gto --radius 0.0025 --output nuco-v-F_SilkS.ngc nuco-v-F_SilkS.gto.gz

abetusk commented 1 year ago

Thanks for the file. gbr2ngc has many, many problems with it.

I hope to have a closer look when I get more time.

abetusk commented 10 months ago

This is mostly a note to myself:

I believe this is an issue with how I calculate the regions. I made some assumptions about where the start and end point of the region were that look to be violated in the provided Gerber file.

There are some circle regions that intersect rounded rectangle regions that look to share some points, as in the following:

bad_region0 bad_region1

For comparison, here is the relevant region in gerbv:

bad_region_gerbv

I believe those circles correspond to the circular regions with rounded rectangles.

This could also be an issue with the Gerber parser not correctly picking up the relevant regions. Regardless, this is clearly a bug in gbr2ngc.