Skip to content

Commit

Permalink
Merge pull request #17945 from Ultimaker/CURA-11395
Browse files Browse the repository at this point in the history
Add raft settings to make margin and remove inside corners configurablle per raft-type
  • Loading branch information
wawanbreton authored Jan 9, 2024
2 parents 76b93c3 + bd467f9 commit e79bca9
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 14 deletions.
155 changes: 141 additions & 14 deletions resources/definitions/fdmprinter.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -6114,7 +6114,101 @@
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"limit_to_extruder": "adhesion_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
"settable_per_extruder": true,
"children":
{
"raft_base_margin":
{
"label": "Raft Base Extra Margin",
"description": "If the raft base is enabled, this is the extra raft area around the model which is also given a raft. Increasing this margin will create a stronger raft while using more material and leaving less area for your print.",
"unit": "mm",
"type": "float",
"value": "raft_margin",
"default_value": 15,
"minimum_value_warning": "raft_interface_line_width",
"maximum_value_warning": "min(raft_interface_margin, 20)",
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"limit_to_extruder": "raft_base_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
},
"raft_interface_margin":
{
"label": "Raft Middle Extra Margin",
"description": "If the raft middle is enabled, this is the extra raft area around the model which is also given a raft. Increasing this margin will create a stronger raft while using more material and leaving less area for your print.",
"unit": "mm",
"type": "float",
"value": "raft_margin",
"default_value": 15,
"minimum_value_warning": "raft_interface_line_width",
"maximum_value_warning": "min(raft_surface_margin, 20)",
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"limit_to_extruder": "raft_interface_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
},
"raft_surface_margin":
{
"label": "Raft Top Extra Margin",
"description": "If the raft top is enabled, this is the extra raft area around the model which is also given a raft. Increasing this margin will create a stronger raft while using more material and leaving less area for your print.",
"unit": "mm",
"type": "float",
"value": "raft_margin",
"default_value": 15,
"minimum_value_warning": "raft_interface_line_width",
"maximum_value_warning": "20",
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"limit_to_extruder": "raft_surface_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
}
}
},
"raft_remove_inside_corners":
{
"label": "Remove Raft Inside Corners",
"description": "Remove inside corners from the raft, causing the raft to become convex.",
"type": "bool",
"default_value": false,
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"settable_per_mesh": false,
"settable_per_extruder": false,
"children":
{
"raft_base_remove_inside_corners":
{
"label": "Remove Raft Base Inside Corners",
"description": "Remove inside corners from the raft base, causing the raft to become convex.",
"type": "bool",
"value": "raft_remove_inside_corners",
"default_value": false,
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"settable_per_mesh": false,
"settable_per_extruder": false
},
"raft_interface_remove_inside_corners":
{
"label": "Remove Raft Middle Inside Corners",
"description": "Remove inside corners from the raft middle part, causing the raft to become convex.",
"type": "bool",
"value": "raft_remove_inside_corners",
"default_value": false,
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"settable_per_mesh": false,
"settable_per_extruder": false
},
"raft_surface_remove_inside_corners":
{
"label": "Remove Raft Top Inside Corners",
"description": "Remove inside corners from the raft top part, causing the raft to become convex.",
"type": "bool",
"value": "raft_remove_inside_corners",
"default_value": false,
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"settable_per_mesh": false,
"settable_per_extruder": false
}
}
},
"raft_smoothing":
{
Expand All @@ -6126,9 +6220,53 @@
"minimum_value": "0",
"minimum_value_warning": "raft_interface_line_width",
"enabled": "resolveOrValue('adhesion_type') == 'raft' and not raft_remove_inside_corners",
"limit_to_extruder": "adhesion_extruder_nr",
"settable_per_mesh": false,
"settable_per_extruder": true
"settable_per_extruder": false,
"children":
{
"raft_base_smoothing":
{
"label": "Raft Base Smoothing",
"description": "This setting controls how much inner corners in the raft base outline are rounded. Inward corners are rounded to a semi circle with a radius equal to the value given here. This setting also removes holes in the raft outline which are smaller than such a circle.",
"unit": "mm",
"type": "float",
"value": "raft_smoothing",
"default_value": 5,
"minimum_value": "0",
"minimum_value_warning": "raft_interface_line_width",
"enabled": "resolveOrValue('adhesion_type') == 'raft' and not raft_base_remove_inside_corners",
"settable_per_mesh": false,
"settable_per_extruder": false
},
"raft_interface_smoothing":
{
"label": "Raft Middle Smoothing",
"description": "This setting controls how much inner corners in the raft middle outline are rounded. Inward corners are rounded to a semi circle with a radius equal to the value given here. This setting also removes holes in the raft outline which are smaller than such a circle.",
"unit": "mm",
"type": "float",
"value": "raft_smoothing",
"default_value": 5,
"minimum_value": "0",
"minimum_value_warning": "raft_interface_line_width",
"enabled": "resolveOrValue('adhesion_type') == 'raft' and not raft_interface_remove_inside_corners",
"settable_per_mesh": false,
"settable_per_extruder": false
},
"raft_surface_smoothing":
{
"label": "Raft Top Smoothing",
"description": "This setting controls how much inner corners in the raft top outline are rounded. Inward corners are rounded to a semi circle with a radius equal to the value given here. This setting also removes holes in the raft outline which are smaller than such a circle.",
"unit": "mm",
"type": "float",
"value": "raft_smoothing",
"default_value": 5,
"minimum_value": "0",
"minimum_value_warning": "raft_interface_line_width",
"enabled": "resolveOrValue('adhesion_type') == 'raft' and not raft_surface_remove_inside_corners",
"settable_per_mesh": false,
"settable_per_extruder": false
}
}
},
"raft_airgap":
{
Expand Down Expand Up @@ -8323,17 +8461,6 @@
"settable_per_mesh": true,
"settable_per_extruder": true
},
"raft_remove_inside_corners":
{
"label": "Remove Raft Inside Corners",
"description": "Remove inside corners from the raft, causing the raft to become convex.",
"type": "bool",
"default_value": false,
"resolve": "any(extruderValues('raft_remove_inside_corners'))",
"enabled": "resolveOrValue('adhesion_type') == 'raft'",
"settable_per_mesh": false,
"settable_per_extruder": false
},
"group_outer_walls":
{
"label": "Group Outer Walls",
Expand Down
4 changes: 4 additions & 0 deletions resources/setting_visibility/expert.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ brim_outside_only
brim_smart_ordering
raft_margin
raft_smoothing
raft_remove_inside_corners
raft_base_smoothing
raft_interface_smoothing
raft_surface_smoothing
raft_airgap
raft_surface_layers
raft_surface_thickness
Expand Down

0 comments on commit e79bca9

Please sign in to comment.