Skip to content

OctreeSearch: also support leaf types without getPointIndicesVector()… - #6467

Open
mvieth wants to merge 2 commits into
PointCloudLibrary:masterfrom
mvieth:fix_octree_search
Open

OctreeSearch: also support leaf types without getPointIndicesVector()…#6467
mvieth wants to merge 2 commits into
PointCloudLibrary:masterfrom
mvieth:fix_octree_search

Conversation

@mvieth

@mvieth mvieth commented Aug 18, 2026

Copy link
Copy Markdown
Member

… function

Use getPointIndicesVector() if the leaf type has it, otherwise fall back to the previous leaf.getPointIndices() (which likely copies indices).

Fixes #6466

… function

Use getPointIndicesVector() if the leaf type has it, otherwise fall back to the previous leaf.getPointIndices() (which likely copies indices).
@mvieth mvieth added module: octree changelog: fix Meta-information for changelog generation labels Aug 18, 2026
@mvieth
mvieth requested a lite review from Copilot August 18, 2026 10:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates OctreePointCloudSearch::getNeighborsWithinRadiusRecursive() to support leaf container types that do not provide getPointIndicesVector(), restoring compatibility with OctreeContainerBase-compliant custom leaf containers (per issue #6466).

Changes:

  • Introduces a small SFINAE-based helper to detect whether a leaf type has getPointIndicesVector().
  • Uses getPointIndicesVector() when available, otherwise falls back to leaf.getPointIndices(...) (copying indices as needed).
  • Updates the radius-neighbor iteration to use the new helper instead of calling getPointIndicesVector() unconditionally.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread octree/include/pcl/octree/impl/octree_search.hpp Outdated
Comment thread octree/include/pcl/octree/impl/octree_search.hpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: fix Meta-information for changelog generation module: octree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[octree] OctreePointCloudSearch<>::getNeightborsWithinRadiusRecursive() requires member that is not apart of OctreeContainerBase

2 participants