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

#255 in Game dev

Download history 10/week @ 2024-07-05 273/week @ 2024-07-26 40/week @ 2024-08-02 9/week @ 2024-08-09 2/week @ 2024-08-16 3/week @ 2024-08-23 10/week @ 2024-08-30 3/week @ 2024-09-06 5/week @ 2024-09-13 39/week @ 2024-09-20 38/week @ 2024-09-27 10/week @ 2024-10-04 337/week @ 2024-10-11

425 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

~37–73MB
~1.5M SLoC