FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Geometry::IntersectionData< DT_ > Struct Template Reference

Contains information about a ray-primitive intersection. More...

#include <raycast.hpp>

Public Member Functions

 IntersectionData (DT_ t)
 Constructor. More...
 
 IntersectionData (DT_ t1, DT_ t2)
 Constructor. More...
 

Public Attributes

DT_ t_entry
 Distance along ray of entry point. Relative to ray direction. More...
 
DT_ t_exit
 Distance along ray of exit point. Relative to ray direction. More...
 

Detailed Description

template<typename DT_>
struct FEAT::Geometry::IntersectionData< DT_ >

Contains information about a ray-primitive intersection.

Template Parameters
DT_Data type

Contains the distance along the ray of the point(s) where a ray enters and exists some primitive shape.

Entry and exit points can differ. For example in case of a coplanar ray-triagle pair. In that case the part of the ray that overlaps the triangle is counted as an intersection and t_entry gives the first point of overlap and t_exit gives the last point of overlap.

In case of a clean intersection, for example between a ray and a non coplanar triangle, t_entry and t_exit will be identical.

The exit point t_exit is guaranteed to be identical to t_entry or further along the ray.

Definition at line 63 of file raycast.hpp.

Constructor & Destructor Documentation

◆ IntersectionData() [1/2]

template<typename DT_ >
FEAT::Geometry::IntersectionData< DT_ >::IntersectionData ( DT_  t)
inlineexplicit

Constructor.

Definition at line 66 of file raycast.hpp.

◆ IntersectionData() [2/2]

template<typename DT_ >
FEAT::Geometry::IntersectionData< DT_ >::IntersectionData ( DT_  t1,
DT_  t2 
)
inline

Constructor.

Definition at line 71 of file raycast.hpp.

References ASSERT.

Member Data Documentation

◆ t_entry

template<typename DT_ >
DT_ FEAT::Geometry::IntersectionData< DT_ >::t_entry

Distance along ray of entry point. Relative to ray direction.

Definition at line 77 of file raycast.hpp.

Referenced by FEAT::Geometry::VertexRaycaster< MeshType_ >::cast(), and FEAT::Geometry::merge().

◆ t_exit

template<typename DT_ >
DT_ FEAT::Geometry::IntersectionData< DT_ >::t_exit

Distance along ray of exit point. Relative to ray direction.

Definition at line 80 of file raycast.hpp.

Referenced by FEAT::Geometry::VertexRaycaster< MeshType_ >::cast(), and FEAT::Geometry::merge().


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