ENH: tree support style default to Tree Hybrid

1. tree support style default to Tree Hybrid
2. fix an assert bug with MedialAxis::build:
    assert(polyline.width.size() == polyline.points.size() * 2 - 2)
  This is caused by the incorrect clear function of ThickPolyline.

Change-Id: I8d6507ad366d253493e2749e0cbac8d3d837ee8a
(cherry picked from commit bd31e962c11e82005944bef40b17471075e79898)
This commit is contained in:
Arthur Tang 2023-03-18 15:53:13 +08:00 committed by Lane.Wei
parent d7364900dd
commit 617cb5490b
4 changed files with 16 additions and 13 deletions

View file

@ -117,7 +117,7 @@ inline bool is_tree(SupportType stype)
};
inline bool is_tree_slim(SupportType type, SupportMaterialStyle style)
{
return is_tree(type) && (style==smsDefault || style==smsTreeSlim);
return is_tree(type) && style==smsTreeSlim;
};
inline bool is_auto(SupportType stype)
{