ENH: improve cantilever detection's speed and accuracy

Cantilever detection should be done layer by layer, instead of using
merged_poly of clusters.

Jira: STUDIO-2198

Change-Id: Ifea017fc4c13425a944ee80f7dedb603a8e14cc2
(cherry picked from commit 0803a439a458ffeb9c6d91e90344a5b78794a6bd)
This commit is contained in:
Arthur 2023-04-03 20:49:25 +08:00 committed by Lane.Wei
parent 74e1ba7963
commit 3d710609d9
4 changed files with 94 additions and 117 deletions

View file

@ -381,7 +381,7 @@ public:
bool has_overhangs = false;
bool has_sharp_tails = false;
bool has_cantilever = false;
double max_cantilevel_dist = 0;
double max_cantilever_dist = 0;
SupportType support_type;
SupportMaterialStyle support_style;