DHART
Loading...
Searching...
No Matches
nanoRT_Data Class Reference

#include <ray_data.h>

+ Inheritance diagram for nanoRT_Data:
+ Collaboration diagram for nanoRT_Data:

Public Member Functions

 nanoRT_Data ()=delete
 
 nanoRT_Data (HF::nanoGeom::Mesh *mesh)
 
 ~nanoRT_Data ()
 
- Public Member Functions inherited from nanort::TriangleIntersector< double, nanort::TriangleIntersection< double > >
 TriangleIntersector (const double *vertices, const unsigned int *faces, const size_t vertex_stride_bytes)
 
bool Intersect (double *t_inout, const unsigned int prim_index) const
 Do ray intersection stuff for prim_index th primitive and return hit distance t, barycentric coordinate u and v. Returns true if there's intersection. More...
 
double GetT () const
 Returns the nearest hit distance. More...
 
void Update (double t, unsigned int prim_idx) const
 Update is called when initializing intersection and nearest hit is found. More...
 
void PrepareTraversal (const Ray< double > &ray, const BVHTraceOptions &trace_options) const
 Prepare BVH traversal (e.g. compute inverse ray direction) This function is called only once in BVH traversal. More...
 
void PostTraversal (const Ray< double > &ray, bool hit, nanort::TriangleIntersection< double > *isect) const
 Post BVH traversal stuff. Fill isect if there is a hit. More...
 

Public Attributes

HF::nanoGeom::Meshmesh
 
nanort::Ray< doubleray
 
nanort::TriangleIntersection< doublehit
 
double dist = -1
 
double point [3] = { -1,-1,-1 }
 

Detailed Description

Definition at line 76 of file ray_data.h.

Constructor & Destructor Documentation

◆ nanoRT_Data() [1/2]

nanoRT_Data::nanoRT_Data ( )
delete

◆ nanoRT_Data() [2/2]

◆ ~nanoRT_Data()

nanoRT_Data::~nanoRT_Data ( )

Member Data Documentation

◆ dist

double nanoRT_Data::dist = -1

Definition at line 90 of file ray_data.h.

◆ hit

Definition at line 88 of file ray_data.h.

Referenced by nanoRT_Data(), and HF::nanoGeom::nanoRT_Intersect().

◆ mesh

HF::nanoGeom::Mesh* nanoRT_Data::mesh

Definition at line 84 of file ray_data.h.

Referenced by nanoRT_Data(), and ~nanoRT_Data().

◆ point

double nanoRT_Data::point[3] = { -1,-1,-1 }

Definition at line 91 of file ray_data.h.

Referenced by HF::nanoGeom::nanoRT_Intersect().

◆ ray

nanort::Ray<double> nanoRT_Data::ray

Definition at line 86 of file ray_data.h.

Referenced by nanoRT_Data(), and HF::nanoGeom::nanoRT_Intersect().


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