Template Class BVHRaycaster
Defined in File BVHRaycaster.hpp
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public lvr2::RaycasterBase< IntT >(Template Class RaycasterBase)
Class Documentation
-
template<typename IntT>
class BVHRaycaster : public lvr2::RaycasterBase<IntT> BVHRaycaster: CPU version of BVH Raycasting: WIP.
Public Functions
-
BVHRaycaster(const MeshBufferPtr mesh, unsigned int stack_size)
Constructor: Stores mesh as member.
-
BVHRaycaster(const MeshBufferPtr mesh)
-
virtual bool castRay(const Vector3f &origin, const Vector3f &direction, IntT &intersection)
Cast a single ray onto the mesh.
- Parameters:
- Returns:
true Intersection found
- Returns:
false Not intersection found
Protected Functions
Protected Attributes
-
BVHTree<BaseVector<float>> m_bvh
-
indexArray m_faces
-
const unsigned int *m_BVHindicesOrTriLists
-
const float *m_BVHlimits
-
const float *m_TriangleIntersectionData
-
const unsigned int *m_TriIdxList
-
const unsigned int m_stack_size
-
struct Ray
Data type to store information about a ray.
-
struct TriangleIntersectionResult
A struct to return the calculation results of a triangle intersection.
-
BVHRaycaster(const MeshBufferPtr mesh, unsigned int stack_size)