Jump to content

Cura calculating wrong number of layers


Jpileggi

Recommended Posts

Posted · Cura calculating wrong number of layers

I am running Cura version 5.1.0. When I slice a Fusion 360 model with the dynamic quality (0.2 initial layer height, 0.16 layer height) profile selected, I get 19 layers for a model thickness of 3.81 mm. So 0.2 + 18 layers x 0.16 = 3.08 mm, or 0.73 mm short. I should be getting at least 22 layers. But if I slice with super, standard, or low quality profiles, I get the correct number of layers. Any thoughts? Is this a bug that has been fixed in subsequent releases? Thanks.

  • Link to post
    Share on other sites

    Posted · Cura calculating wrong number of layers

    Are you sure the dimensions are exact on your model, and when it's being exported? Here's an orthographic view of the side at 0.16mm layer height at layer 20:

    image.thumb.png.402a3614d09eb66130161fefad996999.png

    And here's layer 20 at 0.2mm:

    image.thumb.png.e9defd4da017b631c31b79f2eaca5c10.png

     

    The grey areas represent parts of the original mesh which aren't printed (or in the case of the sides, not yet). In both of them, there isn't a layer's height worth left to fill. Although I do agree with you that it works fine on 0.12mm:

    image.thumb.png.86e74093829d38b4e72366a234f347d1.png

    and 0.28mm:

    image.thumb.png.6b0ae8c73dcefb0ab5725767b8299829.png

     

    Any chance you can upload the STL file so I can see if there's anything about that that looks funky?

  • Link to post
    Share on other sites

    Posted · Cura calculating wrong number of layers

    TL;DR: The problem is probably adaptive layer height and your part would get printed at the right size anyway. It's automatically enabled in the 0.16mm profile and I'm not sure it's getting reset if you switch between the default quality profiles. Try going to Experimental > Use Adaptive Layers, turn it on, slice, turn it off again, slice, see if results are as expected. When slicing using my own custom quality profile, it never came up, so that's something you might want to consider.

     

    Here's the results I get slicing the STL in 5.5 beta 1:

    0.2mm - 19 layers (.2 * 19 = 3.8)

    image.thumb.png.454c43d658eff4dc61a53d67febeffee.png

    0.2mm, 0.3mm initial layer - 19 layers (.2 * 18 + .3 = 3.9, which is closer to 3.81 than 3.7 is hence that height)

    image.thumb.png.e0d838b24f924f84f1f42a8db099acc7.png

    0.28mm - 14 layers (.28 * 14 = 3.92)

    image.thumb.png.ec69f867a9a40ef7f0c148ada11ee044.png

    0.32mm - 12 layers (.32 * 12 = 3.84)

    image.thumb.png.325624c62a73e316707bd5563261a425.png

    I could try bigger, but I'm not sure my 0.4mm nozzle can print much thicker so let's go down:

    0.16mm - 24 layers (.16 * 24 = 3.84)

    image.thumb.png.849bfb5e4e23d0bfea30f3e640a58c3f.png

    0.16mm, initial layer 0.3mm - 23 layers (.16 * 22 + .3 = 3.82)

    image.thumb.png.9dd9998067b9930b181fccc949da888c.png

    0.12mm - 31 layers (.12 * 31 = 3.72)

    image.thumb.png.a8e842167f967fc08e3d0d6691a525af.png

    .12mm, .3mm initial layer - 30 layers (.12 * 29 + .3 = 3.78)

    image.thumb.png.cdbfc55650dbc6561215af17f7e97e59.png

     

    So that all seems completely normal (here comes the "but"):

    BUT those were all sliced using my profile for my E3V3SE. When I switch to the stock profile for the E3 / E3V2:

    .16mm layers, .3mm initial layer - 18 layers (.16 * 17 + .3 = 3.04)

    image.thumb.png.dad3b0b7711914bbb96f6a9729434eb2.png

    .2mm layers - 17 layers (.2 * 17 = 3.4)

    image.thumb.png.1d1d5a74fd4c5547c055994685513f76.png

     

    Experiments so far make me think that it's a printer definition problem - even though I don't know how that could possibly happen.

     

    BUT then I realised it had switched to a stock quality preset - switch it back to my custom one:

    .2mm layers - 19 layers (.2 * 19 = 3.8)

    image.thumb.png.ba7fbd700dade8a6532d148c320eb1b2.png

     

    So then what the heck is different between the stock profile and mine that might affect it? I don't actually have that many settings customised:

    image.thumb.png.57ddc2250a99e6c87b65156207073951.pngimage.thumb.png.5549d3bf5e1a3e2719f92d7d20a35eaf.png

    What sticks out? Nothing, really. Top/bottom thickness only affects how many layers are printed as skin, not the dimensions of the object. Oh well, switch back to the stock profile to test the changes in my profile individually:

    image.thumb.png.cec88b7f40c77cc1f97f79a2988fbbbb.png

    WTF?!? Now it's doing 19 0.2mm layers - the right number. Let's set it to the profile for 0.16mm and see what happens:

    image.thumb.png.8abdf1805524660d7f15727126c928f8.png

    19 layers (.16 * 18 + .2 = 3.08) - what the hell? Switched it back to the standard quality profile. Still doing 19 layers. Good. So why don't I just turn down the layer height on the standard profile?

    image.thumb.png.2137b832f03f00628545535397f2c120.png

    24 layers (.16 * 23 + .2 = 3.88). WHAT THE FAMOUSLY FABULOUS FREEFLYING FRUITCAKE IS GOING ON HERE?!?!!?!?!!?!!?? I mean, the stock quality profiles aren't that different to each other, are they?

    image.png.9b9625a65ec03adc09a0e9a725c0f16f.png

    Hang on a second. Adaptive layers? They make thicker layers where detail isn't required and thinner layers where it is. Switch to dynamic quality. Go into Experimental and turn off adaptive layers.

    image.thumb.png.93c37bf94550303154c503e5ced00c62.png

    24 layers? That's... absolutely correct! THEN WHY THE HELL DIDN'T YOU DO 0.2mm RIGHT THE FIRST TIME YOU ^$#@e:@ING !@$#$%#@>?:#$lEST %%^$%><&)(_$@#THING?

    It worked fine at 0.12mm from the beginning, lets look at its profile:

    image.png.c788d6dff75d405befc05a2036c4ae48.png

    No adaptive layers here. How about you, 0.28mm?

    image.png.36ae6aba9ff86776f51dc557f59fd86f.png

    No adaptive layers here either. Although I don't recall changing the defaults so that the initial layer height is that low for every profile.

     

    SO BASICALLY... it seems like the problem is adaptive layers. And them leaking into other profiles somehow? If it's using adaptive layers, your part should still be the right size, some of the layers will just be thicker.

     

    CALL TO ACTION: Try turning Experimental > Use Adaptive Layers on in whatever profile you're using, slice it, then turn it off and slice it again.

    • Like 1
    Link to post
    Share on other sites

    Posted · Cura calculating wrong number of layers

    Bingo, that's it!. If I turn adaptive layers off in the dynamic profile, it shows 24 layers (3.88 mm). If I turn it back, I'm back to 19 layers. So why is adaptive layers on as a default for the dynamic profile, but not for the others? That is really annoying - I had no idea.

     

    Also, my part is actually coming out small on the .150" portion (.139" actual), but the overall height of the part is correct.

     

    Hey, thanks for the ton of work that you put into this! Great detective work!

  • 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.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...