IntersectionQueryEngine3.h
Go to the documentation of this file.
virtual ClosestIntersectionQueryResult3< T > GetClosestIntersection(const Ray3D &ray, const GetRayIntersectionFunc3< T > &testFunc) const =0
Returns the closest intersection for given ray.
virtual bool IsIntersects(const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc) const =0
Returns true if given box intersects with any of the stored items.
virtual void ForEachIntersectingItem(const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc3< T > &visitorFunc) const =0
Invokes visitorFunc for every intersecting items.
std::function< bool(const T &, const BoundingBox3D &)> BoxIntersectionTestFunc3
Box-item intersection test function.
Definition: IntersectionQueryEngine3.h:31
const T * item
Definition: IntersectionQueryEngine3.h:21
std::function< double(const T &, const Ray3D &)> GetRayIntersectionFunc3
Ray-item closest intersection evaluation function.
Definition: IntersectionQueryEngine3.h:39
double distance
Definition: IntersectionQueryEngine3.h:22
Definition: pybind11Utils.h:24
Closest intersection query result.
Definition: IntersectionQueryEngine3.h:19
std::function< double(const T &, const Vector3D &)> ClosestIntersectionDistanceFunc3
Closest intersection distance measure function.
Definition: IntersectionQueryEngine3.h:27
std::function< void(const T &)> IntersectionVisitorFunc3
Visitor function which is invoked for each intersecting item.
Definition: IntersectionQueryEngine3.h:43
std::function< bool(const T &, const Ray3D &)> RayIntersectionTestFunc3
Ray-item intersection test function.
Definition: IntersectionQueryEngine3.h:35
Abstract base class for 3-D intersection test query engine.
Definition: IntersectionQueryEngine3.h:47