Only calculate avoidance to model when it is requested

This commit is contained in:
Thomas Rahm 2022-12-20 22:27:35 +01:00
parent 033af199a3
commit e87dcffff1

View File

@ -613,6 +613,8 @@ void TreeModelVolumes::calculateAvoidance(const std::vector<RadiusLayerPair> &ke
BOOST_LOG_TRIVIAL(debug) << "Calculation requested for value already calculated?";
continue;
}
if ((task.to_model && !to_model) || (!task.to_model && !to_build_plate))
continue;
if (! task.holefree() || task.radius < m_increase_until_radius + m_current_min_xy_dist_delta)
avoidance_tasks.emplace_back(task);
}