mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-18 04:35:54 +08:00
Small improvement to "least supports" method
This commit is contained in:
parent
1663787b96
commit
bed3321324
@ -103,8 +103,8 @@ inline double get_supportedness_score(const Facestats &fc)
|
|||||||
// the DOWN vector.
|
// the DOWN vector.
|
||||||
float phi = 1. - std::acos(fc.normal.dot(DOWN)) / float(PI);
|
float phi = 1. - std::acos(fc.normal.dot(DOWN)) / float(PI);
|
||||||
|
|
||||||
// Only consider faces that have have slopes below 90 deg:
|
// Only consider faces that have slopes below 90 deg:
|
||||||
phi = phi * (phi > 0.5);
|
phi = phi * (phi >= 0.5f);
|
||||||
|
|
||||||
// Make the huge slopes more significant than the smaller slopes
|
// Make the huge slopes more significant than the smaller slopes
|
||||||
phi = phi * phi * phi;
|
phi = phi * phi * phi;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user