From 6a9bcf8405322dc5d18500b81e1e09ade4a6deee Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 26 Jan 2023 13:59:22 +0100 Subject: [PATCH] Tree supports: Switched to new Organic smoothing & collision avoidance. Follow-up to 3d9f39e2584c5015b9e15f757c65a752f06b7a65 which had the new smoothing & collision avoidance disabled by mistake. --- src/libslic3r/TreeSupport.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/TreeSupport.cpp b/src/libslic3r/TreeSupport.cpp index 9b373312f0..8b34c9f44f 100644 --- a/src/libslic3r/TreeSupport.cpp +++ b/src/libslic3r/TreeSupport.cpp @@ -21,8 +21,6 @@ #include "MutablePolygon.hpp" #include "SupportMaterial.hpp" #include "TriangleMeshSlicer.hpp" -#include "OpenVDBUtilsLegacy.hpp" -#include #include #include @@ -45,6 +43,14 @@ #define TREE_SUPPORT_SHOW_ERRORS_WIN32 #endif +// #define TREE_SUPPORT_ORGANIC_NUDGE_NEW 1 + +#ifndef TREE_SUPPORT_ORGANIC_NUDGE_NEW + // Old version using OpenVDB, works but it is extremely slow for complex meshes. + #include "OpenVDBUtilsLegacy.hpp" + #include +#endif // TREE_SUPPORT_ORGANIC_NUDGE_NEW + namespace Slic3r { @@ -3389,8 +3395,6 @@ static void extrude_branch( } #endif -// #define TREE_SUPPORT_ORGANIC_NUDGE_NEW 1 - #ifdef TREE_SUPPORT_ORGANIC_NUDGE_NEW // New version using per layer AABB trees of lines for nudging spheres away from an object. static void organic_smooth_branches_avoid_collisions(