Jump to content
Ultimaker Community of 3D Printing Experts
TommyDee

Is there a way to change precision?

Recommended Posts

I know the arguments against but you have to trust me that there is a reason for asking...

I have a 4-digit layer height of 0.1925mm which Cura accepts as a layer height.

 

And if it cannot change the precision, how does Cura deal with the cumulative error?...  bummer!

Lets see...  From the output file:

0.442-.25=.192

.634-0.442=.192

.826-.634=.192

Therefore it is obvious the error is cumulative rather than a simple rounding.

 

How do I make the G-code output from Cura provide 4 digits for the Z value rather than 3 for G1 calls?

Share this post


Link to post
Share on other sites

CuraEngine works in whole microns internally. A micron is a 1000th of a mm. Making CuraEngine more precise than the micron level is going to take a LOT of refactoring and will likely decrease its performance significantly and/or cause rounding issues elsewhere.

Share this post


Link to post
Share on other sites
14 hours ago, ahoeben said:

CuraEngine works in whole microns internally. A micron is a 1000th of a mm. Making CuraEngine more precise than the micron level is going to take a LOT of refactoring and will likely decrease its performance significantly and/or cause rounding issues elsewhere.

And not to mention a ton of extra memory usage.

Share this post


Link to post
Share on other sites

It is a matter of completeness in the UI.  I have a pet peeve in in that direction coming from that ilk.

Some people care about that 0.5mm.  A 1,000 layers is an every day thing under fine settings.

I could go on but it isn't worth the wasted bits in the cyber universe.

Just leave it to say that it would be a fit-n-finish enhancement request.

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, P3D said:

If something is not correct, it should be fixed. Especially if it is something like this - I suppose Qt (the GUI framework of cura) does have easy options for implementing the right behaviour.

Unfortunately, there are always more things that are incorrect then there is time/resources to actually fix them with.

Share this post


Link to post
Share on other sites

How to implement this (probably): Use http://doc.qt.io/qt-5/qregexpvalidator.html  (PyQt4 Code snippet - should also work in the PyQt5 used - see answer to this thread: https://stackoverflow.com/questions/34399485/qlineedit-accepts-only-character-in-pyqt4). I have zero Qt/Cura coding experience unfortunately, otherwise I'd probably just try to fix that myself and commit it to github...

Edited by P3D
  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!