Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cura 9790 reconfigure gradual infill #13827

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 74 additions & 47 deletions resources/definitions/fdmprinter.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,7 @@
"description": "Distance between the printed infill lines. This setting is calculated by the infill density and the infill line width.",
"unit": "mm",
"type": "float",
"enabled": false,
"default_value": 2,
"minimum_value": "0",
"minimum_value_warning": "infill_line_width",
Expand Down Expand Up @@ -2215,31 +2216,44 @@
"limit_to_extruder": "infill_extruder_nr",
"settable_per_mesh": true
},
"gradual_infill_steps":
"gradual_infill":
{
"label": "Gradual Infill Steps",
"description": "Number of times to reduce the infill density by half when getting further below top surfaces. Areas which are closer to top surfaces get a higher density, up to the Infill Density.",
"default_value": 0,
"type": "int",
"minimum_value": "0",
"maximum_value_warning": "1 if (infill_pattern == 'cross' or infill_pattern == 'cross_3d' or infill_pattern == 'concentric') else 5",
"maximum_value": "999999 if infill_line_distance == 0 else (20 - math.log(infill_line_distance) / math.log(2))",
"label": "Increase Top Infill",
"description": "The infill density below the top surface is gradually increased to better support the top layers. (Previously known as Gradual Infill.)",
"type": "bool",
"default_value": false,
"enabled": "infill_sparse_density > 0 and infill_pattern not in ['cubicsubdiv', 'cross', 'cross_3d', 'lightning']",
"limit_to_extruder": "infill_extruder_nr",
"settable_per_mesh": true
},
"gradual_infill_step_height":
{
"label": "Gradual Infill Step Height",
"description": "The height of infill of a given density before switching to half the density.",
"unit": "mm",
"type": "float",
"default_value": 1.5,
"minimum_value": "0.0001",
"minimum_value_warning": "3 * resolveOrValue('layer_height')",
"enabled": "infill_sparse_density > 0 and gradual_infill_steps > 0 and infill_pattern not in ['cubicsubdiv', 'cross', 'cross_3d', 'lightning']",
"limit_to_extruder": "infill_extruder_nr",
"settable_per_mesh": true
"settable_per_mesh": true,
"children":
{
"gradual_infill_steps":
{
"label": "Top Infill Steps",
"description": "Number of times to double the infill density when getting towards the top surfaces. (Previously known as Gradual Infill Steps.)",
"default_value": 0,
"type": "int",
"value": "math.floor(math.log(80/infill_sparse_density)/math.log(2))",
"minimum_value": "0",
"maximum_value": "math.floor(math.log(100/infill_sparse_density)/math.log(2))",
"enabled": "gradual_infill",
"limit_to_extruder": "infill_extruder_nr",
"settable_per_mesh": true
},
"gradual_infill_step_height":
{
"label": "Top Infill Step Height",
"description": "The height of infill of a given density before switching to double the density. (Previously known as Gradual Infill Step Height.)",
"unit": "mm",
"type": "float",
"default_value": 1.5,
"minimum_value": "0.0001",
"minimum_value_warning": "resolveOrValue('layer_height')",
"enabled": "gradual_infill",
"limit_to_extruder": "infill_extruder_nr",
"settable_per_mesh": true
}
}
},
"infill_before_walls":
{
Expand Down Expand Up @@ -5063,33 +5077,46 @@
"settable_per_mesh": false,
"settable_per_extruder": true
},
"gradual_support_infill_steps":
{
"label": "Gradual Support Infill Steps",
"description": "Number of times to reduce the support infill density by half when getting further below top surfaces. Areas which are closer to top surfaces get a higher density, up to the Support Infill Density.",
"default_value": 0,
"type": "int",
"minimum_value": "0",
"maximum_value_warning": "1 if (support_pattern == 'cross' or support_pattern == 'lines' or support_pattern == 'concentric') else 5",
"maximum_value": "999999 if support_line_distance == 0 else (20 - math.log(support_line_distance) / math.log(2))",
"enabled": "(support_enable or support_meshes_present) and support_infill_rate > 0",
"limit_to_extruder": "support_infill_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
},
"gradual_support_infill_step_height":
"gradual_support_infill":
{
"label": "Gradual Support Infill Step Height",
"description": "The height of support infill of a given density before switching to half the density.",
"unit": "mm",
"type": "float",
"default_value": 1,
"minimum_value": "0.0001",
"minimum_value_warning": "3 * resolveOrValue('layer_height')",
"enabled": "(support_enable or support_meshes_present) and support_infill_rate > 0 and gradual_support_infill_steps > 0",
"limit_to_extruder": "support_infill_extruder_nr",
"label": "Increase Support Top Infill",
"description": "The infill density at the top of the support is gradually increased to better support the support interface layers or the model. (Previously known as Gradual Support Infill.)",
"type": "bool",
"default_value": false,
"enabled": "(support_enable or support_meshes_present) and support_infill_rate > 0 and support_pattern not in ['cubicsubdiv', 'cross', 'cross_3d', 'lightning']",
"settable_per_mesh": false,
"settable_per_extruder": true
"settable_per_extruder": true,
"children":
{
"gradual_support_infill_steps":
{
"label": "Top Support Infill Steps",
"description": "Number of times to double the infill density when getting towards the top surfaces. (Previously known as Gradual Support Infill Steps.)",
"default_value": 2,
"type": "int",
"minimum_value": "0",
"maximum_value_warning": "5",
"maximum_value": "math.log(100/support_infill_rate)/math.log(2)",
"enabled": "gradual_support_infill",
"limit_to_extruder": "support_infill_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
},
"gradual_support_infill_step_height":
{
"label": "Top Support Infill Step Height",
"description": "The height of infill of a given density before switching to double the density. (Previously known as Gradual Support Infill Step Height.)",
"unit": "mm",
"type": "float",
"default_value": 1,
"minimum_value": "0.0001",
"minimum_value_warning": "3 * resolveOrValue('layer_height')",
"enabled": "gradual_support_infill",
"limit_to_extruder": "support_infill_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
}
}
},
"minimum_support_area":
{
Expand Down
Loading