Skip to content

Commit

Permalink
fallback of merger extended 3
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy84 committed Aug 20, 2023
1 parent c5870fb commit 06bed56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/test_merger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ int main() {
a
};

const double y = 7.5-1.5/std::cos (M_PI/6)-std::tan (M_PI/6)*4.5;
const double y = 7.5-1.5/std::cos(M_PI/6)-std::tan(M_PI/6)*4.5;

PolysType polysC {
Poly({{0, 0, 0}, {25, 0, 0}, {25, 25, 0}, {0, 25, 0}}),
Poly({{2, 5, 0}, {17, 5, 0}, {17, 20, 0}, {2, 20, 0}, {7.5/std::tan (M_PI/6)+2, 12.5, 0}}),
Poly({{6.5, 12.5-y, 0}, {y/std::tan (M_PI/6)+6.5, 12.5, 0}, {6.5, 12.5+y, 0}})
Poly({{2, 5, 0}, {17, 5, 0}, {17, 20, 0}, {2, 20, 0}, {7.5/std::tan(M_PI/6)+2, 12.5, 0}}),
Poly({{6.5, 12.5-y, 0}, {y/std::tan(M_PI/6)+6.5, 12.5, 0}, {6.5, 12.5+y, 0}})
};

if (!Test(polysA, 10, "polysA")) {
Expand Down
3 changes: 3 additions & 0 deletions vtkPolyDataBooleanFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3821,6 +3821,9 @@ void Merger::MergeStage2 (const ConnsType2 &conns, const ReferencedPointsType &r
splitted.push_back(std::move(newPolyA));
splitted.push_back(std::move(newPolyB));

endPts.emplace(refPts.at(conn.i));
endPts.emplace(refPts.at(conn.j));

break;
}
}
Expand Down

0 comments on commit 06bed56

Please sign in to comment.