17 releases (breaking)
new 0.14.1 | Oct 12, 2024 |
---|---|
0.13.0 | Jul 29, 2024 |
0.12.0 | Feb 23, 2024 |
0.11.0 | Nov 7, 2023 |
0.1.0 | Jan 15, 2021 |
#259 in Game dev
91 downloads per month
Used in geo-bevy
7KB
113 lines
bevy-earcutr
Runs earcutr on geometries and generates a Bevy Mesh
.
Examples
use bevy_earcutr::*;
let builder = PolygonMeshBuilder::new();
// Call `add_earcutr_input` or each polygon you want in the mesh.
builder.add_earcutr_input(EarcutrInput {
vertices: vec![...],
interior_indices: vec![...],
});
let mesh = builder.build();
Dependencies
~37–73MB
~1.5M SLoC