WIP TreeSupports: Little optimization - don't use std::function,

don't make unnecessary copies of Polygons
This commit is contained in:
Vojtech Bubnik 2022-08-03 09:40:30 +02:00
parent fd0c84319e
commit b0af552455
2 changed files with 24 additions and 21 deletions

View file

@ -403,7 +403,8 @@ public:
xy_distance = std::max(xy_distance, xy_min_distance);
std::function<void(std::vector<AngleRadians>&, SupportMaterialInterfacePattern)> getInterfaceAngles = [&](std::vector<AngleRadians>& angles, SupportMaterialInterfacePattern pattern) { // (logic) from getInterfaceAngles in FFFGcodeWriter.
// (logic) from getInterfaceAngles in FFFGcodeWriter.
auto getInterfaceAngles = [&](std::vector<AngleRadians>& angles, SupportMaterialInterfacePattern pattern) {
if (angles.empty())
{
if (pattern == SupportMaterialInterfacePattern::smipConcentric)