ENH: improve auto-arranging objects with tree support

We decide to set brim width of all objects to MAX_BRANCH_RADIUS_FIRST_LAYER if there is an object with tree support after discussion.

Jira: MAK-2009
Change-Id: I4c4940800632c433235966b01c44ac910e33a51c
This commit is contained in:
Arthur 2023-09-18 15:47:04 +08:00 committed by Lane.Wei
parent 37e7b0e234
commit d8ba43d979
5 changed files with 16 additions and 4 deletions

View file

@ -159,7 +159,8 @@ ArrangePolygon get_instance_arrange_poly(ModelInstance* instance, const Slic3r::
if (enable_support && (support_type == stNormalAuto || support_type == stNormal))
ap.brim_width = 6.0;
else if (enable_support) {
ap.brim_width = 22.0;
ap.brim_width = 24.0; // 2*MAX_BRANCH_RADIUS_FIRST_LAYER
ap.has_tree_support = true;
}
ap.height = obj->bounding_box().size().z();