Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2021-03-31 17:04:16 +0300
committertamasmeszaros <meszaros.q@gmail.com>2021-04-07 13:51:02 +0300
commitbed3321324265ec8209e9ae41d207ac5e2e6f982 (patch)
tree610bd8ebd9fb925769f874dfd501419f49cb6eb0 /src/libslic3r/SLA
parent1663787b96138cf4f8cc182932b5016cecf8ca2a (diff)
Small improvement to "least supports" method
Diffstat (limited to 'src/libslic3r/SLA')
-rw-r--r--src/libslic3r/SLA/Rotfinder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libslic3r/SLA/Rotfinder.cpp b/src/libslic3r/SLA/Rotfinder.cpp
index 6e8a0ce6b..b84921279 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;