![]()  | 
  
    PeriDyno 1.2.1
    
   | 
 
#include <LinearBVH.h>
Public Types | |
| typedef TDataType::Real | Real | 
| typedef TDataType::Coord | Coord | 
| typedef ::dyno::TAlignedBox3D< Real > | AABB | 
| typedef ::dyno::BVHNode | Node | 
| typedef ::dyno::BVHNode * | NodePtr | 
Public Member Functions | |
| LinearBVH () | |
| ~LinearBVH () | |
| void | construct (const DArray< AABB > &aabb) | 
| GPU_FUNC uint | requestIntersectionNumber (const AABB &queryAABB, const int queryId=EMPTY) const | 
| GPU_FUNC void | requestIntersectionIds (List< int > &ids, const AABB &queryAABB, const int queryId=EMPTY) const | 
| GPU_FUNC NodePtr | getRoot () const | 
| GPU_FUNC AABB | getAABB (const uint idx) const | 
| GPU_FUNC uint | getObjectIdx (const uint idx) const | 
| CPU_FUNC DArray< AABB > & | getSortedAABBs () | 
| void | release () | 
| Call release() to release allocated memory explicitly, do not call this function from the decontructor.   | |
Private Attributes | |
| DArray< Node > | mAllNodes | 
| DArray< Coord > | mCenters | 
| DArray< AABB > | mSortedAABBs | 
| DArray< uint > | mSortedObjectIds | 
| DArray< uint > | mFlags | 
| DArray< uint64 > | mMortonCodes | 
Definition at line 51 of file LinearBVH.h.
| typedef ::dyno::TAlignedBox3D<Real> dyno::LinearBVH< TDataType >::AABB | 
Definition at line 56 of file LinearBVH.h.
| typedef TDataType::Coord dyno::LinearBVH< TDataType >::Coord | 
Definition at line 55 of file LinearBVH.h.
| typedef ::dyno::BVHNode dyno::LinearBVH< TDataType >::Node | 
Definition at line 57 of file LinearBVH.h.
| typedef ::dyno::BVHNode* dyno::LinearBVH< TDataType >::NodePtr | 
Definition at line 58 of file LinearBVH.h.
| typedef TDataType::Real dyno::LinearBVH< TDataType >::Real | 
Definition at line 54 of file LinearBVH.h.
| dyno::LinearBVH< TDataType >::LinearBVH | ( | ) | 
| dyno::LinearBVH< TDataType >::~LinearBVH | ( | ) | 
| void dyno::LinearBVH< TDataType >::construct | ( | const DArray< AABB > & | aabb | ) | 
      
  | 
  inline | 
Definition at line 70 of file LinearBVH.h.
      
  | 
  inline | 
Definition at line 71 of file LinearBVH.h.
      
  | 
  inline | 
Definition at line 68 of file LinearBVH.h.
      
  | 
  inline | 
Definition at line 73 of file LinearBVH.h.
| void dyno::LinearBVH< TDataType >::release | ( | ) | 
Call release() to release allocated memory explicitly, do not call this function from the decontructor.
| GPU_FUNC void dyno::LinearBVH< TDataType >::requestIntersectionIds | ( | List< int > & | ids, | 
| const AABB & | queryAABB, | ||
| const int | queryId = EMPTY ) const | 
| GPU_FUNC uint dyno::LinearBVH< TDataType >::requestIntersectionNumber | ( | const AABB & | queryAABB, | 
| const int | queryId = EMPTY ) const | 
      
  | 
  private | 
Definition at line 82 of file LinearBVH.h.
      
  | 
  private | 
Definition at line 84 of file LinearBVH.h.
      
  | 
  private | 
Definition at line 89 of file LinearBVH.h.
      
  | 
  private | 
Definition at line 91 of file LinearBVH.h.
      
  | 
  private | 
Definition at line 86 of file LinearBVH.h.
      
  | 
  private | 
Definition at line 87 of file LinearBVH.h.