Skip to content

Commit

Permalink
Merge pull request #1083 from RobWalt/feat/integrate-spade
Browse files Browse the repository at this point in the history
Integrate `spade`
  • Loading branch information
urschrei authored Nov 9, 2023
2 parents 055087d + 0e1802b commit ff1fd16
Show file tree
Hide file tree
Showing 4 changed files with 792 additions and 1 deletion.
2 changes: 2 additions & 0 deletions geo/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
* <https://github.com/georust/geo/pull/1091>
* Add `wkt!` macro to define geometries at compile time.
<https://github.com/georust/geo/pull/1063>
* Add `TriangulateSpade` trait which provides (un)constrained Delaunay Triangulations for all `geo_types` via the `spade` crate
* <https://github.com/georust/geo/pull/1083>

## 0.26.0

Expand Down
3 changes: 2 additions & 1 deletion geo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ rust-version = "1.65"
categories = ["science::geo"]

[features]
default = ["earcutr"]
default = ["earcutr", "spade"]
use-proj = ["proj"]
proj-network = ["use-proj", "proj/network"]
use-serde = ["serde", "geo-types/serde"]

[dependencies]
earcutr = { version = "0.4.2", optional = true }
spade = { version = "2.2.0", optional = true }
float_next_after = "1.0.0"
geo-types = { version = "0.7.9", features = ["approx", "use-rstar_0_11"] }
geographiclib-rs = { version = "0.2.3", default-features = false }
Expand Down
6 changes: 6 additions & 0 deletions geo/src/algorithm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ pub mod triangulate_earcut;
#[cfg(feature = "earcutr")]
pub use triangulate_earcut::TriangulateEarcut;

/// Triangulate polygons using an (un)constrained [Delaunay Triangulation](https://en.wikipedia.org/wiki/Delaunay_triangulation) algorithm.
#[cfg(feature = "spade")]
pub mod triangulate_spade;
#[cfg(feature = "spade")]
pub use triangulate_spade::TriangulateSpade;

/// Vector Operations for 2D coordinates
mod vector_ops;
pub use vector_ops::Vector2DOps;
Expand Down
Loading

0 comments on commit ff1fd16

Please sign in to comment.