use vector instead of boost small vector

This commit is contained in:
Pavel Mikus 2023-02-21 19:53:39 +01:00
parent 61e623eda9
commit 86729aa499

View File

@ -1690,9 +1690,11 @@ void PrintObject::bridge_over_infill()
Polygons special_infill{}; Polygons special_infill{};
Polygons not_sparse_infill{}; Polygons not_sparse_infill{};
{ {
double bottom_z = layer->print_z - max_bridge_flow_height[candidates.first] - EPSILON; double bottom_z = layer->print_z - max_bridge_flow_height[candidates.first] - EPSILON;
LayerSlice::Links current_links = candidates.first->overlaps_below; std::vector<LayerSlice::Link> current_links{};
LayerSlice::Links next_links{}; current_links.insert(current_links.end(), candidates.first->overlaps_below.begin(),
candidates.first->overlaps_below.end());
std::vector<LayerSlice::Link> next_links{};
for (int i = int(lidx) - 1; i >= 0; --i) { for (int i = int(lidx) - 1; i >= 0; --i) {
// Stop iterating if layer is lower than bottom_z. // Stop iterating if layer is lower than bottom_z.
if (po->get_layer(i)->print_z < bottom_z) if (po->get_layer(i)->print_z < bottom_z)