Jump to content

Change infill density layer-by-layer like infill line direction


scheerjacob

Recommended Posts

Posted · Change infill density layer-by-layer like infill line direction

Hi Ultimaker Community,

 

I would like to know if it's possible to change the infill density layer by layer. For instance infill line angle can be represented with a matrix of desired angles. If you input the following matrix [0,90] you get an infill pattern where every layer is perpendicular to the ones above and below. 

 

What I want to know if it's possible to change the infill density layer by layer. To be able to put in a matrix like [20,40] and get 20% for the first layer and then 40% for the second layer and so on.

 

Is that possible? As of now, I think I'd need to code that using CuraEngine. I am sort of a noob when it comes to programming, so I don't know how to implement that. I think I'd need to edit the infill.cpp file in the function addLineInfill or something like that. The variable that needs to be adjusted layer wise is line_distance, but I don't know how to do that.

 

Any thoughts?

 

 

 

 

  • Link to post
    Share on other sites

    Posted · Change infill density layer-by-layer like infill line direction

    Possible but a huge pain in the neck to do it.  You use the feature "per model settings".  Basic steps:

     

    1) Set the majority infill for your model (the infill that is more common).  If it's half and half then pick either 20% or 40%.

    2) Add a cube to the build plate.  Select it by clicking.  Click "per model settings" icon on left edge.  It prompts for mesh type.  You can use normal I think but definitely you can use "modify settings for infill of other models".  Set the minority infill in the settings (e.g. 20% or 40$).  Consider removing all other infill settings from the mesh type.

     

    3) Using scale tool, make the height (z scaling) equal to half your layer height.  Make the width and length (X,Y size) larger than your model.

     

    4) Now multiply this part by the number of layers you want to have the minority infill.

    5) Now select the "per model" parts one at a time.  Select the move tool on the left side, set the Z value by typing in the height for the layer to use the minority infill.  e.g. 0.7mm.  Repeat for all "per model" cuboids.

     

    If you have 50 layers this will take 25 "per model" cuboids.  Yikes.  It should work though.  Once you get good at it you should be able to do this in just 4 seconds per layer.  Not too bad if you have less than 100 layers to do.

     

    Make sure to do "save" "project" repeatedly as that will save everything including your "per model" cuboids.

     

    If you try to follow these instructions and get completely lost, google "cura per model settings" and there are great videos.

    • Like 1
    Link to post
    Share on other sites

    Posted · Change infill density layer-by-layer like infill line direction

    Thanks so much @gr5!! I did think of that because I had seen a few per model settings videos on youtube and some of the things people came up with were totally insane. That makes sense, but indeed it would be a real pain to create 50 tiny layers and set each one to a different density. 

     

    My question is really for anyone with a coding or developing background who knows how to modify the code that's working behind the scenes. Where is the density variable implemented in the code and can it be adjusted on a layer by layer basis like the angle matrix? I tried to figure that out on my own, but I'm not good enough at coding to really figure out where the variables are implemented and how.

     

    Any thoughts would be greatly appreciated.

  • Link to post
    Share on other sites

    Posted · Change infill density layer-by-layer like infill line direction
    On 10/22/2020 at 3:51 AM, gr5 said:

    Possible but a huge pain in the neck to do it.  You use the feature "per model settings".  Basic steps:

     

    1) Set the majority infill for your model (the infill that is more common).  If it's half and half then pick either 20% or 40%.

    2) Add a cube to the build plate.  Select it by clicking.  Click "per model settings" icon on left edge.  It prompts for mesh type.  You can use normal I think but definitely you can use "modify settings for infill of other models".  Set the minority infill in the settings (e.g. 20% or 40$).  Consider removing all other infill settings from the mesh type.

     

    3) Using scale tool, make the height (z scaling) equal to half your layer height.  Make the width and length (X,Y size) larger than your model.

     

    4) Now multiply this part by the number of layers you want to have the minority infill.

    5) Now select the "per model" parts one at a time.  Select the move tool on the left side, set the Z value by typing in the height for the layer to use the minority infill.  e.g. 0.7mm.  Repeat for all "per model" cuboids.

     

    If you have 50 layers this will take 25 "per model" cuboids.  Yikes.  It should work though.  Once you get good at it you should be able to do this in just 4 seconds per layer.  Not too bad if you have less than 100 layers to do.

     

    Make sure to do "save" "project" repeatedly as that will save everything including your "per model" cuboids.

     

    If you try to follow these instructions and get completely lost, google "cura per model settings" and there are great videos.

     

    yikes, is there a better example of why we need an undo function in Cura.

     

    I shudder at the thought of placing 50 of these without an undo function lol. 

  • Link to post
    Share on other sites

    • 9 months later...
    Posted · Change infill density layer-by-layer like infill line direction
    On 7/25/2021 at 7:20 PM, CartesianTheatrics said:

    How hard would it be to add this to the "ChangeAtZ" post processing script?

    Very hard, if not completely impossible.

  • Link to post
    Share on other sites

    Posted · Change infill density layer-by-layer like infill line direction

    If you can live with every other layer having "0" infill density then you can set the "Infill Layer Thickness" to some multiple of your regular layer height.

    For example:  If you set your layer height to 0.2mm and the Infill Layer Thickness to 0.4mm and your Infill Density is 25%, then every-other layer would have no infill and the ones in between would have 25% infill density.  If you were to make the Infill Layer Thickness 3 or 4 times the regular layer height then infill would be put down every 3rd or 4th layer.

    I will do that to speed up prints that have large areas of infill or that require dense infill.  Putting infill down every-other layer will likely require increasing either the Infill Flow % or the Infill Line Width to provide more plastic.  In turn, that can require slowing down the Infill Speed to keep from over taxing the flow capability of your hot end.  The same thing can be done with "Support Infill Layer Thickness".  You just need to keep in mind that Everything Affects Everything so a practice print can be a good idea.

  • 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

      • 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
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
         
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 48 replies
    ×
    ×
    • Create New...