Loading...
Searching...
No Matches
Octree.hpp
Go to the documentation of this file.
Abstract base class for N-D intersection test query engine.
Definition IntersectionQueryEngine.hpp:98
Definition Matrix.hpp:30
Abstract base class for N-D nearest neighbor query engine.
Definition NearestNeighborQueryEngine.hpp:53
NearestNeighborQueryResult3< T > Nearest(const Vector3D &pt, const NearestNeighborDistanceFunc3< T > &distanceFunc) const override
Definition Octree-Impl.hpp:60
void Build(const std::vector< T > &items, const BoundingBox3D &bound, const BoxIntersectionTestFunc3< T > &testFunc, size_t maxDepth)
Definition Octree-Impl.hpp:26
const T & GetItem(size_t i) const
Returns the item at i.
Definition Octree-Impl.hpp:221
void Clear()
Clears all the contents of this instance.
Definition Octree-Impl.hpp:51
typename ContainerType::const_iterator ConstIterator
Definition Octree.hpp:35
size_t GetMaxDepth() const
Returns the maximum depth of the tree.
Definition Octree-Impl.hpp:251
ClosestIntersectionQueryResult3< T > ClosestIntersection(const Ray3D &ray, const GetRayIntersectionFunc3< T > &testFunc) const override
Returns the closest intersection for given ray.
Definition Octree-Impl.hpp:180
size_t GetChildIndex(size_t nodeIdx, size_t childIdx) const
Returns a child's index for given node.
Definition Octree-Impl.hpp:239
Iterator begin()
Returns the begin iterator of the item.
Definition Octree-Impl.hpp:191
const BoundingBox3D & GetBoundingBox() const
Returns the bounding box of this octree.
Definition Octree-Impl.hpp:245
size_t GetNumberOfNodes() const
Returns the number of octree nodes.
Definition Octree-Impl.hpp:227
size_t GetNumberOfItems() const
Returns the number of items.
Definition Octree-Impl.hpp:215
bool Intersects(const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc) const override
Returns true if given box intersects with any of the stored items.
Definition Octree-Impl.hpp:150
const std::vector< size_t > & GetItemsAtNode(size_t nodeIdx) const
Returns the list of the items for given node index.
Definition Octree-Impl.hpp:233
void ForEachIntersectingItem(const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override
Invokes visitorFunc for every intersecting items.
Definition Octree-Impl.hpp:164
Iterator end()
Returns the end iterator of the item.
Definition Octree-Impl.hpp:197
Definition pybind11Utils.hpp:21
RayIntersectionTestFunc< T, 3 > RayIntersectionTestFunc3
3-D ray-item intersection test function.
Definition IntersectionQueryEngine.hpp:76
NearestNeighborDistanceFunc< T, 3 > NearestNeighborDistanceFunc3
3-D nearest neighbor distance measure function.
Definition NearestNeighborQueryEngine.hpp:48
GetRayIntersectionFunc< T, 3 > GetRayIntersectionFunc3
3-D ray-item closest intersection evaluation function.
Definition IntersectionQueryEngine.hpp:89
std::function< void(const T &)> IntersectionVisitorFunc
Visitor function which is invoked for each intersecting item.
Definition IntersectionQueryEngine.hpp:93
BoxIntersectionTestFunc< T, 3 > BoxIntersectionTestFunc3
3-D box-item intersection test function.
Definition IntersectionQueryEngine.hpp:63
N-D closest intersection query result.
Definition IntersectionQueryEngine.hpp:26
1.9.8