From 88ce35ee642c88037436c1a951e9e78a9d63e253 Mon Sep 17 00:00:00 2001 From: Olek Date: Sat, 31 Dec 2016 22:55:11 +0100 Subject: [PATCH] tweaking --- src/kdtree/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kdtree/mod.rs b/src/kdtree/mod.rs index ce8b667..3a3bb39 100644 --- a/src/kdtree/mod.rs +++ b/src/kdtree/mod.rs @@ -129,7 +129,7 @@ impl Kdtree { self.nodes.pop(); } - if self.node_depth_during_last_rebuild as f64 * 2.0 < depth as f64 { + if self.node_depth_during_last_rebuild as f64 * 1.5 < depth as f64 { self.gather_points_and_rebuild(); } }