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

#251 in Game dev

Download history 7/week @ 2024-08-13 1/week @ 2024-08-20 11/week @ 2024-08-27 4/week @ 2024-09-03 1/week @ 2024-09-10 16/week @ 2024-09-17 55/week @ 2024-09-24 18/week @ 2024-10-01 324/week @ 2024-10-08 53/week @ 2024-10-15 4/week @ 2024-10-22 23/week @ 2024-10-29 25/week @ 2024-11-05 1/week @ 2024-11-12 12/week @ 2024-11-19 5/week @ 2024-11-26

51 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

~39–75MB
~1.5M SLoC