Skip to content

Commit

Permalink
Fix hull_test isMeshConvex() vertices check (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo authored Aug 14, 2024
1 parent e26e01a commit 952546b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/hull_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bool isMeshConvex(manifold::Manifold hullManifold, double epsilon = 0.0000001) {

// Check all other vertices
for (int i = 0; i < (int)vertPos.size(); ++i) {
if (i == tri[0] || i == tri[2] || i == tri[3])
if (i == tri[0] || i == tri[1] || i == tri[2])
continue; // Skip vertices of the current triangle

// Get the vertex
Expand Down

0 comments on commit 952546b

Please sign in to comment.