Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-20 18:27:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-20 18:42:24 +0300
commit3602071e47f4cb6613448c14c931fbd6ffb45ead (patch)
treea717aa613edc56607191967ea6e608f58b9b1efb /source/blender/blenlib/BLI_kdtree_impl.h
parentdce5695f8e6da5acaa29a9906be2b9646aecdbdd (diff)
BLI_kdtree: add deduplicate function
Function to remove exact duplicates from the tree before balancing.
Diffstat (limited to 'source/blender/blenlib/BLI_kdtree_impl.h')
-rw-r--r--source/blender/blenlib/BLI_kdtree_impl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_kdtree_impl.h b/source/blender/blenlib/BLI_kdtree_impl.h
index 08b66c16d3e..bd4fa908b14 100644
--- a/source/blender/blenlib/BLI_kdtree_impl.h
+++ b/source/blender/blenlib/BLI_kdtree_impl.h
@@ -67,6 +67,9 @@ int BLI_kdtree_nd_(calc_duplicates_fast)(
const KDTree *tree, const float range, bool use_index_order,
int *doubles);
+
+int BLI_kdtree_nd_(deduplicate)(KDTree *tree);
+
/* Versions of find/range search that take a squared distance callback to support bias. */
int BLI_kdtree_nd_(find_nearest_n_with_len_squared_cb)(
const KDTree *tree, const float co[KD_DIMS],