mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH: sync with master on sharp tail and cantilever detection
Change-Id: Id514d47d868fd02a8ac02ef85ef33ef48a2bd7c7
This commit is contained in:
parent
967909937d
commit
4bab300e18
2 changed files with 22 additions and 8 deletions
|
@ -1518,6 +1518,16 @@ static inline Polygons detect_overhangs(
|
|||
{
|
||||
// Don't fill in the holes. The user may apply a higher raft_expansion if one wants a better 1st layer adhesion.
|
||||
overhang_polygons = to_polygons(layer.lslices);
|
||||
|
||||
for (auto& slice : layer.lslices) {
|
||||
auto bbox_size = get_extents(slice).size();
|
||||
if (g_config_support_sharp_tails &&
|
||||
!(bbox_size.x() > length_thresh_well_supported && bbox_size.y() > length_thresh_well_supported))
|
||||
{
|
||||
layer.sharp_tails.push_back(slice);
|
||||
layer.sharp_tails_height.insert({ &slice, layer.height });
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (! layer.regions().empty())
|
||||
{
|
||||
|
@ -1609,12 +1619,12 @@ static inline Polygons detect_overhangs(
|
|||
supported_area += temp.area();
|
||||
bbox.merge(get_extents(temp));
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (supported_area > area_thresh_well_supported) {
|
||||
is_sharp_tail = false;
|
||||
break;
|
||||
}
|
||||
|
||||
#endif
|
||||
if (bbox.size().x() > length_thresh_well_supported && bbox.size().y() > length_thresh_well_supported) {
|
||||
is_sharp_tail = false;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue