File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ name = "bench"
1414path = " 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" }
1919rand = " 0.10"
2020rand_distr = " 0.6"
@@ -39,7 +39,7 @@ anyhow = "1.0"
3939getrandom = { 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 ]
4545live_svg = []
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments