Skip to content

Commit

Permalink
Avoid compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
qnzhou committed Oct 23, 2024
1 parent 822b63c commit 546d604
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ std::unique_ptr<MeshType> resolve_nonmanifoldness(MeshType& mesh)
*/
auto is_inconsistently_oriented = [&mesh, &get_orientation](const Index ei) -> bool {
const auto e = mesh.get_edge_vertices(ei);
std::array<bool, 2> orientations;
std::array<bool, 2> orientations{false, false};
size_t count = 0;
mesh.foreach_facets_around_edge(ei, [&](Index fid) {
orientations[count] = get_orientation(e[0], e[1], fid);
Expand Down

0 comments on commit 546d604

Please sign in to comment.