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

"Drawing out of range" - floating-point issues #18

Open
nylen opened this issue Oct 14, 2019 · 3 comments
Open

"Drawing out of range" - floating-point issues #18

nylen opened this issue Oct 14, 2019 · 3 comments

Comments

@nylen
Copy link

nylen commented Oct 14, 2019

$ python gcodeplot/gcodeplot.py --work-z=0.9 --lift-delta=0.6 --safe-delta-z=3 --z-speed=45 --pens=pens.txt mandala.svg
Optimizing...[0%][5%][10%][15%][20%][25%][30%][35%][40%][45%][50%][55%][60%][65%][70%][75%][80%][85%][90%][95%]
Transport time improvement: 89.1% (took 1.64 seconds).
Drawing out of range: [0.0, 5.291666695939057e-06] [176.38888447916665, 176.38888977083334]
No points.

Files needed to reproduce the issue: gcodeplot-fpbug.zip

I commented out the "Drawing out of range" section to make the print work, and it turned out awesome. I think it would be better to add a tolerance here though (or just allow negative values, since they're not necessarily invalid).

@pooltable500
Copy link

Not sure if this is too late to ask, and sorry for bringing up an old post. I am having the same issue with having negative coordinates as I am using this on my 3018 CNC. Can you point out what lines you commented out?

@arpruss
Copy link
Owner

arpruss commented Apr 25, 2021

I don't recommend this fix as you lose the safety measure: your cnc may bump against the edges. Instead, use the --area commandline argument.

@sashokbg
Copy link

I have the same problem. Is there a solution besides commenting out the exception ?

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

4 participants