Browse Source

Implement gradual support infill

CURA-2724
Lipu Fei 7 years ago
parent
commit
328ec0419d
1 changed files with 41 additions and 0 deletions
  1. 41 0
      resources/definitions/fdmprinter.def.json

+ 41 - 0
resources/definitions/fdmprinter.def.json

@@ -3406,6 +3406,47 @@
                     "enabled": "support_enable",
                     "settable_per_mesh": true
                 },
+                "support_infill_sparse_thickness":
+                {
+                    "label": "Support Infill Layer Thickness",
+                    "description": "The thickness per layer of support infill material. This value should always be a multiple of the layer height and is otherwise rounded.",
+                    "unit": "mm",
+                    "type": "float",
+                    "default_value": 0.1,
+                    "minimum_value": "resolveOrValue('layer_height')",
+                    "maximum_value_warning": "0.75 * machine_nozzle_size",
+                    "maximum_value": "resolveOrValue('layer_height') * 8",
+                    "value": "resolveOrValue('layer_height')",
+                    "enabled": "support_infill_rate > 0",
+                    "limit_to_extruder": "support_infill_extruder_nr",
+                    "settable_per_mesh": false
+                },
+                "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": "5",
+                    "maximum_value": "999999 if support_line_distance == 0 else (20 - math.log(support_line_distance) / math.log(2))",
+                    "enabled": "support_enable",
+                    "limit_to_extruder": "support_infill_extruder_nr",
+                    "settable_per_mesh": false
+                },
+                "gradual_support_infill_step_height":
+                {
+                    "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.5,
+                    "minimum_value": "0.0001",
+                    "minimum_value_warning": "3 * resolveOrValue('layer_height')",
+                    "enabled": "support_enable and gradual_support_infill_steps > 0",
+                    "limit_to_extruder": "support_infill_extruder_nr",
+                    "settable_per_mesh": false
+                },
                 "support_interface_enable":
                 {
                     "label": "Enable Support Interface",