<p>I am designing a part with a material which can bear up to a certain stress. </p>

<p>To keep the stress within the design limits, I need to ensure a certain surface of solid material per layer, in other words a minimum amount of extruded filament per layer and a smoothly changing infill ratio so that the infill can transmit the load efficiently to the neighbouring layers.</p>

<p>The part has an irregular shape and I cannot simply increase the infill ratio for the whole object because the part is big and it would cost more time and filament. I also cannot build straight pillars of solid material inside the part because there are no regions which are suitable for a continuous pillar.</p>

<p>How can I calculate and apply a smoothly changing infill ratio or in general how to ensure that each layer is made of at least a certain amount of material?</p>

<p>I use Prusa Slicer for slicing and Fusion 360 for the design.</p>

<p>Related questions about variable infill, which however don't answer my question because I need to specify the amount of material and because I need a smoothly changing infill ratio:</p>

<p><a href="https://3dprinting.stackexchange.com/questions/6522/different-infill-in-the-same-part">Different infill in the same part</a></p>

<p><a href="https://3dprinting.stackexchange.com/questions/7025/slic3r-can-i-vary-the-infill-percentage-for-different-heights-of-my-model">slic3r: Can I vary the infill percentage for different heights of my model?</a> </p>

[{'answer_id': 11693, 'author': 'towe', 'author_id': 13171, 'author_profile': 'https://3dprinting.stackexchange.com/users/13171', 'pm_score': 1, 'selected': True, 'text': '<p>Very interesting idea!\nThere may be a way to do this semi-automatically, but I believe it\'s not yet a part of any slicer.</p>\n\n<p>My suggestion would be:</p>\n\n<ul>\n<li>Export file as .stl (Fusion 360)</li>\n<li>Use a DLP slicer to create images of the layers (CHITUBox)</li>\n<li>Calculate the area of each of the images (Matlab - I think?)</li>\n<li>Calculate the required infill percentages for having the same mass on each layer (Excel)</li>\n<li>Open the model in PrusaSlicer, create a single "height range modifier" (PrusaSlicer)</li>\n<li>Save the project as .3mf (PrusaSlicer)</li>\n<li>Extract the .3mf file (7 Zip)</li>\n<li>Create the neccessary "layer config ranges" texts for PrusaSlicer (Excel)</li>\n<li>Inject that text into an extrated .3mf file (Notepad++)</li>\n<li>Pack the .3mf file again (7 Zip)</li>\n<li>Slice the resulting file (PrusaSlicer)</li>\n</ul>\n'}, {'answer_id': 11694, 'author': 'R.. GitHub STOP HELPING ICE', 'author_id': 11157, 'author_profile': 'https://3dprinting.stackexchange.com/users/11157', 'pm_score': 2, 'selected': False, 'text': '<p>I think you have a major XY problem. The amount of material per layer is not what determines the part strength. Unless additional material is placed in a manner that reinforces against the stress you\'re designing for, it\'s just wasted. Moreover, infill in particular is not terribly useful this way, as infill has to rest upon the support of existing infill below it. If you suddenly increase infill density at a particular layer, it will not provide any significant additional strength because the added lines will be unsupported and will not bond strongly to anything. Even the next layer above them, and the next after that for quite a few layers, will not bond well because the unsupported lines can just bend downward when the nozzle goes over them, rather than providing a surface for the newly deposited material to press firmly against and bond to.</p>\n\n<p>Generally, infill is not your main source of part strength anyway. I would start out (especially if you can test; if this is a one-off thing, the material cost is not going to be an issue anyway and just go with overkill) by increasing the number of wall lines (wall thickness). Walls generally provide the most strength, and the amount of material used will be proportional to cross-sectional perimeter rather than area, which typically will vary "linearly" rather than "quadratically" (I use these terms loosely since I don\'t know right off how to make it rigorous - what the independent variable should be thought of as being). My usual default (and I believe Cura\'s) is 2 walls; I would expect 4-5 to be very strong, and as long as you keep at least 15-20% infill, probably stronger than what you\'d get by any increase in infill percent.</p>\n'}]
['https://3dprinting.stackexchange.com/questions/11690', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/2338/']