mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 18:42:02 +08:00
Fix of SPE-1811 - rarely, the support spot generator runs supper slow. Caused by too many slice connections detected by z-graph. The Z-Graph issue is not solved.
github issue https://github.com/prusa3d/PrusaSlicer/issues/10940
This commit is contained in:
parent
646d6dc44f
commit
7f8b03fd79
@ -183,8 +183,11 @@ SliceConnection estimate_slice_connection(size_t slice_idx, const Layer *layer)
|
||||
BoundingBox slice_bb = get_extents(slice_polys);
|
||||
const Layer *lower_layer = layer->lower_layer;
|
||||
|
||||
std::unordered_set<size_t> linked_slices_below;
|
||||
for (const auto &link : slice.overlaps_below) { linked_slices_below.insert(link.slice_idx); }
|
||||
|
||||
ExPolygons below{};
|
||||
for (const auto &link : slice.overlaps_below) { below.push_back(lower_layer->lslices[link.slice_idx]); }
|
||||
for (const auto &linked_slice_idx_below : linked_slices_below) { below.push_back(lower_layer->lslices[linked_slice_idx_below]); }
|
||||
Polygons below_polys = to_polygons(below);
|
||||
|
||||
BoundingBox below_bb = get_extents(below_polys);
|
||||
|
Loading…
x
Reference in New Issue
Block a user