template<typename ... Tp>
struct lvr2::Intersection< Tp >
CRTP Container for User defined intersection elements.
Define your own intersection type that is passed to the Raycaster you like. Allowed elements are in lvr2::intelem
using MyIntType = Intersection<intelem::Point, intelem::Face>;
RaycasterBasePtr<MyIntType> rc(new BVHRaycaster(meshbuffer));
MyIntType intersection_result;
bool hit = rc->castRay(ray_origin, ray_direction, intersection_result);
if(hit)
{
std::cout << intersection_result << std::endl;
}
- Template Parameters
-
Tp | List of intelem::* types
|
Definition at line 103 of file Intersection.hpp.