From bed3321324265ec8209e9ae41d207ac5e2e6f982 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 31 Mar 2021 16:04:16 +0200 Subject: [PATCH] Small improvement to "least supports" method --- src/libslic3r/SLA/Rotfinder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/SLA/Rotfinder.cpp b/src/libslic3r/SLA/Rotfinder.cpp index 6e8a0ce6b6..b849212793 100644 --- a/src/libslic3r/SLA/Rotfinder.cpp +++ b/src/libslic3r/SLA/Rotfinder.cpp @@ -103,8 +103,8 @@ inline double get_supportedness_score(const Facestats &fc) // the DOWN vector. float phi = 1. - std::acos(fc.normal.dot(DOWN)) / float(PI); - // Only consider faces that have have slopes below 90 deg: - phi = phi * (phi > 0.5); + // Only consider faces that have slopes below 90 deg: + phi = phi * (phi >= 0.5f); // Make the huge slopes more significant than the smaller slopes phi = phi * phi * phi;