Jump to content
UltiMaker Community of 3D Printing Experts

0 is a value, not the absence of one. (Change in CURA?)


Brulti

Recommended Posts

Posted · 0 is a value, not the absence of one. (Change in CURA?)

Hello,

 

I just realized something, which illustrates a bit the difference of thinking between software engineers and coders and everyday folks: for the latter, 0 is a valid value, like 1 or 2 or pi or whatever, for the formers, 0 is usually used as an absence of value, meaning that if you input 0 in a field, then it tells the program to not execute whatever instruction is linked to that field, and move to the next instruction.

 

I was trying to help @4instudent with his Breakaway gap problem and realized that, when you input 0 in the 'Support Roof Line Distance' field, CURA interprets that as 'No support roof line needed' and creates a massive gap between the support and the bottom of the overhang because it doesn't create any support roof despite the option being checked, while what we wanted by inputting that value was 'No distance between the roof of the support and the bottom of the overhang, stick them together', the goal being to have the smoothest surface finish possible.

 

I haven't checked all parameters, but I'm sure there are many other examples of the 0 being understood as a 'null' answer instead of a 0 distance. Which is very confusing to the layman who has no knowledge of coding, and very frustrating even if you know the source of the problem because you have to fumble around with small values like 0.01 and hope it doesn't lead to CURA being confused because your printing profile is at 0.2 or something.

 

Could that be changed so that all the fields where the user can input a number, especially on 'distance' stuff, the 0 is read as '0 distance' instead of 'no value'? And, perhaps, put something else to mean 'no value', like leaving the field blank or using a sign like / or something?

 

Thanks

  • Link to post
    Share on other sites

    Posted · 0 is a value, not the absence of one. (Change in CURA?)

    AFAIK, in most cases Cura behaves just as you say: 0 is a value, not the absense of a value. If this is not that case, that is (in muy opinion) a bug.

  • Link to post
    Share on other sites

    Posted (edited) · 0 is a value, not the absence of one. (Change in CURA?)

    So, I have to put my hand up here and admit to committing this crime. I recently created a new setting called "Max Comb Distance With No Retract" that forces combed travel moves to use retraction if they are longer than some threshold distance (which is the value of the setting). Now, I had two choices here as to how this feature is enabled, I could either add another checkbox to make the setting active or not or I could choose a value that denotes that the setting is not active. One possibility is to make the setting default to such a large number that all combing travel moves would be shorter than that distance, say 100000000mm (or whatever). Personally, I don't like doing that because it looks ugly and you may not choose a value big enough (people are making some large form factor printers these days). So I plumped for zero and I made it explicitly obvious in the blurb for that setting that the value has to be greater than zero for the setting to be active. If the Cura guardians wish to add a checkbox to explicitly enabled/disable this setting I won't complain but I won't be doing that myself.

    Edited by burtoogle
  • Link to post
    Share on other sites

    Posted · 0 is a value, not the absence of one. (Change in CURA?)

    Actually, I would also be ok if, as an alternative to what I asked, the blurb explicitly states that 0 deactivates the setting in question or that you need a value higher than 0 for the setting to be active, as you did.

     

    But the blurb for the example I cited in my original post didn't say either of those things.

  • Link to post
    Share on other sites

    Posted · 0 is a value, not the absence of one. (Change in CURA?)

    In most cases we have two settings; A check-box "Should this be done in the first place" and a value "How much of the thing should be done if we do it"

  • Link to post
    Share on other sites

    Posted · 0 is a value, not the absence of one. (Change in CURA?)
    7 hours ago, nallath said:

    In most cases we have two settings; A check-box "Should this be done in the first place" and a value "How much of the thing should be done if we do it"

     

    'How much' is not the question that should be asked when the setting has the word 'Distance' in it.

  • 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
    • Our picks

      • UltiMaker Cura 5.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 24 replies
      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
         
         
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
         
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
         
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.
         

         
        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 18 replies
      • UltiMaker Cura Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
         
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 22 replies
    ×
    ×
    • Create New...