17 releases (breaking)

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

#462 in Game dev

25 downloads per month
Used in geo-bevy

MIT/Apache

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

~38–74MB
~1.5M SLoC