template<typename PointT, typename LeafT, typename BranchT, typename OctreeT> bool pcl::octree::OctreePointCloud<PointT, LeafT, BranchT, OctreeT>::isVoxelOccupiedAtPoint (const PointT& point_arg) const { OctreeKey key; // generate key for point this->genOctreeKeyforPoint (point_arg, key); // search for key in octree return (isPointWithinBoundingBox (point_arg) && this->existLeaf (key)); }
template<typename PointT, typename LeafContainerT, typename BranchContainerT, typename OctreeT> void pcl::octree::OctreePointCloud<PointT, LeafContainerT, BranchContainerT, OctreeT>::deleteVoxelAtPoint (const PointT& point_arg) { if (!isPointWithinBoundingBox (point_arg)) { return; } OctreeKey key; // generate key for point this->genOctreeKeyforPoint (point_arg, key); this->removeLeaf (key); }