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

Download history 4/week @ 2024-06-17 3/week @ 2024-06-24 10/week @ 2024-07-01 306/week @ 2024-07-29 9/week @ 2024-08-05 9/week @ 2024-08-12 12/week @ 2024-08-26 4/week @ 2024-09-02 7/week @ 2024-09-16 63/week @ 2024-09-23 20/week @ 2024-09-30

91 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