Skip to content

Commit

Permalink
can build mesh from edge lists (#38)
Browse files Browse the repository at this point in the history
* can build mesh from edge lists

* clippy

* add some basic tests

* add note that obstacles must not overlap. cdt will panic otherwise

* rely on geo for polygon management

* directly use a geo::Polygon as inner type

* can merge overlapping obstacles

* bench and test

* code cleanup

* add big merging bench

* don't test just at the intersection

* merge test

* fix bug when obstacles are next to each other and a point has no neighbour polygon

* no need anymore for a shift

* do not consume triangulation when creating navmesh

* add triangulation simplification support

* tracing support for triangulation

* don't panic on triangulation error

* clippy

* update doc

* clippy
  • Loading branch information
mockersf committed Aug 17, 2023
1 parent 40607b7 commit 135db8b
Show file tree
Hide file tree
Showing 9 changed files with 5,189 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@ glam = { version = "0.24", features = ["approx"] }
smallvec = { version = "1.9", features = ["union", "const_generics"] }
bvh2d = { version = "0.3", git = "https://github.com/mockersf/bvh2d" }
serde = { version = "1.0", features = ["derive"], optional = true }
spade = "2.2"
geo = "0.26.0"

[dev-dependencies]
criterion = "0.5"
tracing-tracy = "0.10"
tracing-subscriber = "0.3"
tracing = "0.1"

[workspace]
members = ["examples/traced"]

[lib]
bench = false

Expand All @@ -51,3 +56,7 @@ harness = false
[[bench]]
name = "baking"
harness = false

[[bench]]
name = "triangulation"
harness = false

0 comments on commit 135db8b

Please sign in to comment.