Loading...
Searching...
No Matches
BVH.hpp
Go to the documentation of this file.
const BoundingBox< double, N > & GetBoundingBox() const
Returns bounding box of every items.
Definition BVH-Impl.hpp:560
size_t NumberOfItems() const
Returns the number of items.
Definition BVH-Impl.hpp:590
bool Intersects(const BoundingBox< double, N > &box, const BoxIntersectionTestFunc< T, N > &testFunc) const override
Returns true if given box intersects with any of the stored items.
Definition BVH-Impl.hpp:191
void Clear()
Clears all the contents of this instance.
Definition BVH-Impl.hpp:75
ClosestIntersectionQueryResult< T, N > ClosestIntersection(const Ray< double, N > &ray, const GetRayIntersectionFunc< T, N > &testFunc) const override
Returns the closest intersection for given ray.
Definition BVH-Impl.hpp:476
size_t NumberOfNodes() const
Returns the number of nodes.
Definition BVH-Impl.hpp:602
std::pair< size_t, size_t > Children(size_t i) const
Returns the children indices of i-th node.
Definition BVH-Impl.hpp:608
bool IsLeaf(size_t i) const
Returns true if i-th node is a leaf node.
Definition BVH-Impl.hpp:620
Iterator ItemOfNode(size_t i)
Returns item of i-th node.
Definition BVH-Impl.hpp:632
void ForEachIntersectingItem(const BoundingBox< double, N > &box, const BoxIntersectionTestFunc< T, N > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override
Invokes visitorFunc for every intersecting items.
Definition BVH-Impl.hpp:334
Iterator begin()
Returns the begin Iterator of the item.
Definition BVH-Impl.hpp:566
void Build(const ConstArrayView1< T > &items, const ConstArrayView1< BoundingBox< double, N > > &itemsBounds)
Builds bounding volume hierarchy.
Definition BVH-Impl.hpp:48
NearestNeighborQueryResult< T, N > Nearest(const Vector< double, N > &pt, const NearestNeighborDistanceFunc< T, N > &distanceFunc) const override
Definition BVH-Impl.hpp:84
const BoundingBox< double, N > & NodeBound(size_t i) const
Returns bounding box of i-th node.
Definition BVH-Impl.hpp:626
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
Definition pybind11Utils.hpp:21
1.9.8