Template Class EmbreeRaycaster

Inheritance Relationships

Base Type

Class Documentation

template<typename IntT>
class EmbreeRaycaster : public lvr2::RaycasterBase<IntT>

Public Functions

EmbreeRaycaster(const MeshBufferPtr mesh)
~EmbreeRaycaster()
virtual bool castRay(const Vector3f &origin, const Vector3f &direction, IntT &intersection)

Cast a single ray onto the mesh.

Parameters:
  • origin[in] Ray origin

  • direction[in] Ray direction

  • intersection[out] User defined intersection output

Returns:

true Intersection found

Returns:

false Not intersection found

Protected Functions

RTCDevice initializeDevice()
RTCScene initializeScene(RTCDevice device, const MeshBufferPtr mesh)
inline RTCRayHit lvr2embree(const Vector3f &origin, const Vector3f &direction) const

Protected Attributes

RTCDevice m_device
RTCScene m_scene