domoszlai / juicy-gcode

A lightweight SVG to GCode converter for maximal curve fitting
https://hackage.haskell.org/package/juicy-gcode
MIT License
113 stars 7 forks source link

"NaN" issue with arcs #16

Closed berkut0 closed 1 year ago

berkut0 commented 1 year ago

zebra_gcodes.zip

изображение

domoszlai commented 1 year ago

Thanks for reporting it. I'll have a look

domoszlai commented 1 year ago

May I have the original SVG?

berkut0 commented 1 year ago

Oh, thought I put it in the archive

Also I tried it with "-r 1" and without args (this refers to the files as I remember)

zebra_svg_gcodes.zip

domoszlai commented 1 year ago

This is one of the problematic beziers: <path d="M443 1265 C442 1265 440 1266 440 1265" stroke="#ff0000"></path>

domoszlai commented 1 year ago

The problem has been fixed in master, please comnfirm

berkut0 commented 1 year ago

A very rare error, difficult to catch, if it happens again, I'll write. I had only a couple of files like this, now I've lost track of which ones. These are mostly generated svg by tracing online. But the example above is generated by "potrace" and "skia" combined

domoszlai commented 1 year ago

All right. Your zebra svg works properly now, I'm going to release