From 66fa8c806d99dcce24054a993e7e2c3fec51156e Mon Sep 17 00:00:00 2001 From: PaulOlyslager Date: Wed, 29 May 2024 09:23:31 +0200 Subject: [PATCH] added tollerance in find function in order that points in a different box which are on the common boundary are found if v is in the other box --- src/octree.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octree.jl b/src/octree.jl index 08544ca..c65cadc 100644 --- a/src/octree.jl +++ b/src/octree.jl @@ -489,7 +489,7 @@ Return an array containing the indices of values at `pos` (up to a tolerance) """ function find(tr::Octree, v; tol = sqrt(eps(eltype(v)))) - pred = (c,s) -> fitsinbox(v, 0.0, c, s)# i didn't change it because find will get the point anyway, it only chck for its existance + pred = (c,s) -> fitsinbox(v, 0.0, c, s+tol)# i didn't change it because find will get the point anyway, it only chck for its existance I = Int[] for b in boxes(tr, pred) for i in b