mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix for normal averaging and hidden parameter for max normal Z angle.
This commit is contained in:
@@ -1085,7 +1085,8 @@ bool SLASupportTree::generate(const PointSet &points,
|
||||
double polar = std::acos(z / r);
|
||||
double azimuth = std::atan2(n(1), n(0));
|
||||
|
||||
if(polar >= PI / 2) { // skip if the tilt is not sane
|
||||
// skip if the tilt is not sane
|
||||
if(polar >= PI - cfg.normal_cutoff_angle) {
|
||||
|
||||
// We saturate the polar angle to 3pi/4
|
||||
polar = std::max(polar, 3*PI / 4);
|
||||
|
||||
Reference in New Issue
Block a user