Skip to content

Commit 24a9de6

Browse files
author
Amael Marquez
committed
[SpatialPartitioning] Clean up kdtree docs
1 parent ad58f2b commit 24a9de6

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

Ponca/src/SpatialPartitioning/KdTree/kdTree.h

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,19 +272,12 @@ public :
272272
NodeContainer m_nodes;
273273
IndexContainer m_indices;
274274

275-
LeafSizeType m_min_cell_size; ///< Minimal number of points per leaf
276-
NodeIndexType m_leaf_count; ///< Number of leaves in the Kdtree (computed during construction)
275+
LeafSizeType m_min_cell_size {64}; ///< Minimal number of points per leaf
276+
NodeIndexType m_leaf_count {0}; ///< Number of leaves in the Kdtree (computed during construction)
277277

278278
// Internal ----------------------------------------------------------------
279279
protected:
280-
inline KdTreeImplBase():
281-
m_points(),
282-
m_nodes(),
283-
m_indices(),
284-
m_min_cell_size(64),
285-
m_leaf_count(0)
286-
{
287-
}
280+
inline KdTreeImplBase() = default;
288281

289282
/// Generate a tree sampled from a custom contained type converted using a `Converter`
290283
/// \tparam PointUserContainer Input point, transformed to PointContainer

doc/src/ponca_module_spatialpartitioning.mdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Ponca
1212

1313
\subsection spatialpartitioning_intro_structures Datastructures
1414

15-
- Ponca::KdTreeDense and Ponca::KdTreeSparse : a binary search tree (https://en.wikipedia.org/wiki/K-d_tree)
15+
- Ponca::KdTreeDense and Ponca::KdTreeSparse: binary search trees (https://en.wikipedia.org/wiki/K-d_tree)
1616
- Ponca::KnnGraph : a nearest neighbor graph (https://en.wikipedia.org/wiki/Nearest_neighbor_graph). Constructed from
1717
a KdTree.
1818

0 commit comments

Comments
 (0)