Switched from earcutr to earcut-rs

earcutr is an excellent crate for polygon triangulation. But it’s API isn’t convenient to use with Bevy.
Recently discovered this crate that I wanted to share with others: https://github.com/MIERUNE/earcut-rs
It’s generic over indices and provides a way to reuse allocations.

I found it quite convenient to use for cutting holes in walls. My walls are 3D, but I cut wall planes in 2D and generate the rest of the mesh.

@projectharmonia

#bevyengine #projectharmonia #rustlang