Added anchor_skin_shrink_distance.

Also, renamed anchor_skin_distance to anchor_skin_expand_distance.

The idea behind the shrink distance is that when the slope of the model surface
is steep, very slim skin areas are created close to the wall and if they
are expanded we end up with skin inside the infill that isn't required. So
by shrinking the skin polygons slightly first, the very slim areas are removed
before the skin is expanded. The amount to shrink defaults to half the wall
width which appears to work OK but may as well make it a setting so that it
can be tweaked if required.
This commit is contained in:
Mark Burton 2017-02-07 09:55:15 +00:00
parent 495a73e976
commit 7681261b03

View file

@ -1270,9 +1270,9 @@
"enabled": "anchor_skins_in_infill",
"settable_per_mesh": true
},
"anchor_skin_distance":
"anchor_skin_expand_distance":
{
"label": "Anchor Skin Distance",
"label": "Anchor Skin Expand Distance",
"description": "The distance the skins are expanded into the infill. The default distance is enough to bridge the gap between the infill lines and will stop holes appearing in the skin where it meets the wall when the infill density is low. A smaller distance will often be sufficient.",
"unit": "mm",
"type": "float",
@ -1281,6 +1281,18 @@
"minimum_value": "0",
"enabled": "anchor_skins_in_infill",
"settable_per_mesh": true
},
"anchor_skin_shrink_distance":
{
"label": "Anchor Skin Shrink Distance",
"description": "The distance the skins are shrunk before they are expanded. Shrinking the skins slightly first removes the very narrow skin areas that are created when the model surface has a slope close to the vertical.",
"unit": "mm",
"type": "float",
"default_value": 0,
"value": "wall_thickness * 0.5",
"minimum_value": "0",
"enabled": "anchor_skins_in_infill",
"settable_per_mesh": true
}
}
}