Loading...
Searching...
No Matches
Octree-Impl.hpp
Go to the documentation of this file.
VectorType MidPoint() const
Returns the mid-point of this box.
Definition BoundingBox-Impl.hpp:194
VectorType Corner(size_t idx) const
Returns corner position. Index starts from x-first order.
Definition BoundingBox-Impl.hpp:240
ValueType DistanceSquaredTo(const MatrixExpression< T, R, C, E > &other) const
Returns the squared distance to the other vector.
Definition Matrix.hpp:30
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
1.9.8