File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
Ponca/src/SpatialPartitioning/KdTree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff 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 ----------------------------------------------------------------
279279protected:
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
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace Ponca
1212
1313 \s u bsection spatialpartitioning_intro_str u ctures 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
You can’t perform that action at this time.
0 commit comments