Skip to content

Commit 0527ca4

Browse files
authored
Merge pull request #139 from JeroenGar/bump/jagua-rs
bump/jagua-rs
2 parents b74bc45 + 163a799 commit 0527ca4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name = "bench"
1414
path = "src/bench.rs"
1515

1616
[dependencies]
17-
jagua-rs = { features = ["spp"], git = "https://github.com/JeroenGar/jagua-rs.git", rev = "ba38bcae9ed3ab41a9e93a1894e2b01ea87c6619"}
17+
jagua-rs = { features = ["spp"], git = "https://github.com/JeroenGar/jagua-rs.git", rev = "06b4915aac55c944d966aaf5c6b472a7fd699c6e"}
1818
#jagua-rs = { features = ["spp"], path = "../jagua-rs/jagua-rs" }
1919
rand = "0.10"
2020
rand_distr = "0.6"
@@ -39,7 +39,7 @@ anyhow = "1.0"
3939
getrandom = { version = "0.4", features = ["wasm_js"] }
4040

4141
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
42-
ctrlc = "3.4"
42+
ctrlc = "3.5"
4343

4444
[features]
4545
live_svg = []

src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ pub struct SparrowConfig {
2020
/// Disabled if `None`.
2121
/// See [`jagua_rs::io::parser::Parser::new`] for more details.
2222
pub min_item_separation: Option<f32>,
23-
/// Defines the maximum distance between two vertices of a polygon to consider it a narrow concavity (which will be closed).
23+
/// Defines a maximum distance and area of a concavity to be considered "narrow" (which will be closed).
2424
/// Disabled if `None`.
2525
/// See [`jagua_rs::io::parser::Parser::new`] for more details.
26-
pub narrow_concavity_cutoff_ratio: Option<f32>,
26+
pub narrow_concavity_cutoff_ratio: Option<(f32, f32)>,
2727
}
2828

2929
#[derive(Debug, Clone, Copy)]
@@ -98,6 +98,6 @@ pub const DEFAULT_SPARROW_CONFIG: SparrowConfig = SparrowConfig {
9898
},
9999
},
100100
poly_simpl_tolerance: Some(0.001),
101-
narrow_concavity_cutoff_ratio: Some(0.01),
101+
narrow_concavity_cutoff_ratio: Some((0.01, 0.01)),
102102
min_item_separation: None,
103103
};

0 commit comments

Comments
 (0)