DHART
|
#include <nanort.h>
Public Member Functions | |
TriangleMesh (const T *vertices, const unsigned int *faces, const size_t vertex_stride_bytes) | |
void | BoundingBox (real3< T > *bmin, real3< T > *bmax, unsigned int prim_index) const |
Compute bounding box for prim_index th triangle. This function is called for each primitive in BVH build. More... | |
Public Attributes | |
const T * | vertices_ |
const unsigned int * | faces_ |
const size_t | vertex_stride_bytes_ |
|
inline |
|
inline |
Compute bounding box for prim_index
th triangle. This function is called for each primitive in BVH build.
Definition at line 942 of file nanort.h.
References nanort::TriangleMesh< T >::faces_, nanort::get_vertex_addr(), nanort::TriangleMesh< T >::vertex_stride_bytes_, and nanort::TriangleMesh< T >::vertices_.
const unsigned int* nanort::TriangleMesh< T >::faces_ |
Definition at line 967 of file nanort.h.
Referenced by nanort::TriangleMesh< T >::BoundingBox().
const size_t nanort::TriangleMesh< T >::vertex_stride_bytes_ |
Definition at line 968 of file nanort.h.
Referenced by nanort::TriangleMesh< T >::BoundingBox().
const T* nanort::TriangleMesh< T >::vertices_ |
Definition at line 966 of file nanort.h.
Referenced by nanort::TriangleMesh< T >::BoundingBox().