Crates.io | bevy-earcutr |
lib.rs | bevy-earcutr |
version | |
source | src |
created_at | 2021-01-15 18:31:09.694755 |
updated_at | 2024-10-12 21:50:43.800104 |
description | earcutr + Bevy |
homepage | |
repository | https://github.com/frewsxcv/bevy-earcutr |
max_upload_size | |
id | 342487 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Runs earcutr on geometries and generates a Bevy Mesh
.
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();