Skip to content

Commit 72fd86a

Browse files
committed
Fix ear clipping triangle order
1 parent e148b9b commit 72fd86a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tesselate/ear_clipping.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn ear_clipping_direct<Vec2: Vector2D, V: IndexType>(
8484
}
8585
}
8686

87-
indices.insert_triangle(vs[i_a].1, vs[i_b].1, vs[i_c].1);
87+
indices.insert_triangle(vs[i_a].1, vs[i_c].1, vs[i_b].1);
8888
clipped[i_b] = true;
8989
n -= 1;
9090
fails_since_advance = 0;

0 commit comments

Comments
 (0)