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

Result of a single closest point query. More...

#include <lagrange/raycasting/RayCaster.h>

Inheritance diagram for ClosestPointHit:
HitBase

Public Attributes

float distance = std::numeric_limits<float>::infinity()
 Distance from the query point to the closest point on the surface.
 
- 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 closest point query.


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