Lagrange
Loading...
Searching...
No Matches
RayHit Struct Reference

Result of a single-ray intersection query. More...

#include <lagrange/raycasting/RayCaster.h>

Inheritance diagram for RayHit:
HitBase

Public Attributes

float ray_depth = 0
 Parametric distance along the ray (t value).
 
Eigen::Vector3f normal = Eigen::Vector3f::Zero()
 Unnormalized geometric normal at the hit point.
 
- Public Attributes inherited from HitBase
uint32_t mesh_index = invalid<uint32_t>()
 Index of the mesh that was hit.
 
uint32_t instance_index = invalid<uint32_t>()
 Index of the instance that was hit (relative to the source mesh).
 
uint32_t facet_index = invalid<uint32_t>()
 Index of the facet that was hit.
 
Eigen::Vector2f barycentric_coord = Eigen::Vector2f::Zero()
 Barycentric coordinates of the hit point within the hit facet.
 
Eigen::Vector3f position = Eigen::Vector3f::Zero()
 World-space position of the hit point.
 

Detailed Description

Result of a single-ray intersection query.


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