From f2f827c175a41170f6780c3c5242f14b6cfffa94 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Sun, 22 Dec 2024 18:53:36 +0800 Subject: [PATCH] Revert the changes BBL made for diagram fix, because this happens! (SoftFever/OrcaSlicer#7815) --- src/libslic3r/Geometry/Voronoi.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libslic3r/Geometry/Voronoi.cpp b/src/libslic3r/Geometry/Voronoi.cpp index 69db537698..4f7173e5c2 100644 --- a/src/libslic3r/Geometry/Voronoi.cpp +++ b/src/libslic3r/Geometry/Voronoi.cpp @@ -169,12 +169,10 @@ VoronoiDiagram::detect_known_issues(const VoronoiDiagram &voronoi_diagram, Segme return edge_issue_type; } else if (const IssueType cell_issue_type = detect_known_voronoi_cell_issues(voronoi_diagram, segment_begin, segment_end); cell_issue_type != IssueType::NO_ISSUE_DETECTED) { return cell_issue_type; + } else if (!VoronoiUtilsCgal::is_voronoi_diagram_planar_angle(voronoi_diagram, segment_begin, segment_end)) { + // Detection of non-planar Voronoi diagram detects at least GH issues #8474, #8514 and #8446. + return IssueType::NON_PLANAR_VORONOI_DIAGRAM; } - // BBS: test no problem in BBS - //} else if (!VoronoiUtilsCgal::is_voronoi_diagram_planar_angle(voronoi_diagram, segment_begin, segment_end)) { - // // Detection of non-planar Voronoi diagram detects at least GH issues #8474, #8514 and #8446. - // return IssueType::NON_PLANAR_VORONOI_DIAGRAM; - //} return IssueType::NO_ISSUE_DETECTED; }