Inheritance Graph
graph BT
PointOctree
click PointOctree "classGeometry_1_1PointOctree"
Description
Three-dimensional spatial data structure for storing points with additional arbitrary data.
Author: Benjamin Eikel, Jonas Knoll
Date: 2011-02-08
Public Types
Public Functions
Documentation
typedef
Geometry::PointOctree::point_t
Defined in Geometry/PointOctree.h:59
function
Geometry::PointOctree::PointOctree
|
|
|
|
|
|
PointOctree( |
const Box & |
boundingBox, |
|
float |
minimumBoxSize, |
|
uint32_t |
maximumPoints |
) |
|
|
Create a new octree for points within the given bounds.
Parameters
- boundingBox
- Bounding box for all points to store.
- minimumBoxSize
- Minimum side length of leaf cells. If this is reached, the leaf will not be split anymore.
- maximumPoints
- Maximum number of points in leaf cells. If this is reached, a leaf will be split.
Defined in Geometry/PointOctree.h:68
function
Geometry::PointOctree::getBox
Defined in Geometry/PointOctree.h:72
function
Geometry::PointOctree::getMinBoxSize
Defined in Geometry/PointOctree.h:75
function
Geometry::PointOctree::getMaxNumPoints
Defined in Geometry/PointOctree.h:78
function
Geometry::PointOctree::hasChildren
Defined in Geometry/PointOctree.h:81
function
Geometry::PointOctree::isLeaf
Defined in Geometry/PointOctree.h:84
function
Geometry::PointOctree::empty
Defined in Geometry/PointOctree.h:87
function
Geometry::PointOctree::clear
Delete all child nodes and all points.
Defined in Geometry/PointOctree.h:94
function
Geometry::PointOctree::insert
|
|
|
|
|
|
bool insert( |
const Point_t & |
point ) |
Insert the point into the octree.
Parameters
- point
- Data item containing the position.
Defined in Geometry/PointOctree.h:104
function
Geometry::PointOctree::remove
|
|
|
|
|
|
bool remove( |
const Point_t & |
point ) |
Removes the point from the octree.
Parameters
- point
- Data item containing the position.
Defined in Geometry/PointOctree.h:111
function
Geometry::PointOctree::collectPoints
Return all points.
Parameters
- out
- Points in the tree.
Defined in Geometry/PointOctree.h:118
function
Geometry::PointOctree::collectPointsWithinBox
Return all points where the location is within the given box.
Parameters
- box
- out
- Points that fulfill the condition are added to this container.
Defined in Geometry/PointOctree.h:126
function
Geometry::PointOctree::collectPointsWithinSphere
Return all points where the location is within the sphere.
Parameters
- sphere
- The sphere describing the query region.
- out
- Points that fulfill the condition are added to this container.
Defined in Geometry/PointOctree.h:134
function
Geometry::PointOctree::findLeafCell
Return the leaf node containing the given point or nullptr if the point is outside the tree.
Parameters
- point
- Point
Returns
PointOctree leaf node or nullptr.
Defined in Geometry/PointOctree.h:142
function
Geometry::PointOctree::findLeafCell
Defined in Geometry/PointOctree.h:157
function
Geometry::PointOctree::getClosestPoints
Defined in Geometry/PointOctree.h:173
function
Geometry::PointOctree::getSortedClosestPoints
Defined in Geometry/PointOctree.h:175