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

@ -381,6 +381,7 @@ public:
bool has_sharp_tails = false;
bool has_cantilever = false;
SupportType support_type;
SupportMaterialStyle support_style;
std::unique_ptr<FillLightning::Generator> generator;
std::unordered_map<double, size_t> printZ_to_lightninglayer;