Atoms Crowd  4.1.0
AtomsUtils::KdTreeAccel Class Reference
Inheritance diagram for AtomsUtils::KdTreeAccel:
AtomsUtils::KdTreeAccel_base

Public Member Functions

 KdTreeAccel (Mesh *_mesh, unsigned int numThreads, unsigned int max_depth=4)
 
void build ()
 
KdTreeNodebuildTree_boxEdges (const AtomsMath::Box3f &nodeExtent, vv_BoxEdge &boxEdgeList, int maxDepth)
 
- Public Member Functions inherited from AtomsUtils::KdTreeAccel_base
 KdTreeAccel_base (Mesh *mesh, unsigned int numThreads, unsigned int max_depth, float Ct=Ct_DEFAULT, float Ci=Ci_DEFAULT, float emptyBonus=emptyBonus_DEFAULT)
 
bool intersect (const AtomsMath::Vector3f &orig, const AtomsMath::Vector3f &dir, float &param, unsigned int &outFaceId, float &outU, float &outV)
 
AtomsMath::Vector3f closestPoint (const AtomsMath::Vector3f &orig, unsigned int &outFaceId, float &outU, float &outV, float &distance)
 
void searchInSiblings (const AtomsMath::Vector3f &orig, KdTreeNode *closestNode, AtomsMath::Vector3f &closetsPoint, int &outFaceId, float &outU, float &outV, float &minDistance, std::set< KdTreeNode * > &nodeVisited)
 
KdTreeNoderoot ()
 
std::vector< KdTreeNode * > & nodes ()
 
bool intersectsBoxLine (const AtomsMath::Box3f &b, const AtomsMath::Line3f &r, AtomsMath::Vector3f &ip) const
 

Additional Inherited Members

- Public Attributes inherited from AtomsUtils::KdTreeAccel_base
const SAH sah
 
- Protected Attributes inherited from AtomsUtils::KdTreeAccel_base
KdTreeNodem_root
 
const Meshm_mesh
 
unsigned int m_numThreads
 
unsigned int m_maxDepth
 
std::vector< Trianglem_triangleList
 
std::vector< KdTreeNode * > m_nodes
 

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