Skip to content

Runs earcutr on geometries and generates a Bevy Mesh.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

frewsxcv/bevy-earcutr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Runs earcutr on geometries and generates a Bevy Mesh.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages