Helios++
Helios software for LiDAR simulations
KDTreeRaycaster::KDTreeRaycasterSearch Class Reference

Data for search operations of KDTree raycaster. More...

Public Member Functions

 KDTreeRaycasterSearch (glm::dvec3 const rayDir, glm::dvec3 const rayOrigin, bool const groundOnly=false)
 Default constructo for KDTreeRaycasterSearch.
 

Public Attributes

glm::dvec3 const rayDir
 Ray 3D director vector.
 
glm::dvec3 const rayOrigin
 Ray origin 3D coordinates.
 
bool const groundOnly
 Flag to specify if only ground points must be considered (true) or not (false)
 
std::vector< double > rayDirArray
 Vector containing components of ray director vector. It is filled at the start of a search operation. More...
 
std::vector< double > rayOriginArray
 Vector containing components of ray origin. It is filled at the start of a search operation. More...
 
double closestHitDistance
 Distance of closest hit. It is numeric_limits<double>::max() by default.
 
std::map< double, Primitive * > collectedPoints
 Map of primitives identified by its distance with respect to ray origin. Only primitives which intersect with the ray are considered (i.e. those which distance with respect to ray origin is greater than 0)
 

Detailed Description

Data for search operations of KDTree raycaster.

Member Data Documentation

◆ rayDirArray

std::vector<double> KDTreeRaycaster::KDTreeRaycasterSearch::rayDirArray

Vector containing components of ray director vector. It is filled at the start of a search operation.

See also
KDTreeRaycaster::searchAll
KDTreeRaycaster::search

◆ rayOriginArray

std::vector<double> KDTreeRaycaster::KDTreeRaycasterSearch::rayOriginArray

Vector containing components of ray origin. It is filled at the start of a search operation.

See also
KDTreeRaycaster::searchAll
KDTreeRaycaster::search

The documentation for this class was generated from the following file: