Atoms Crowd  7.0.0
AtomsUtils::Bvh Class Reference

Public Member Functions

void init (Mesh *mesh)
 
void clear ()
 
bool intersect (const AtomsMath::Vector3f &orig, const AtomsMath::Vector3f &dir, float &param, unsigned int &outFaceId, float &outU, float &outV, bool bothDirection) const
 
bool RayIntersectsTriangle (const AtomsMath::Vector3f rayOrigin, const AtomsMath::Vector3f rayVector, int i, AtomsMath::Vector3f &outIntersectionPoint, float &param) const
 

Public Attributes

std::vector< MortonCodemortons
 
std::vector< BVHNodeinternalNodes
 
std::vector< AtomsMath::Vector3f > treeAABBs
 
AtomsUtils::Meshm_mesh
 
std::vector< AtomsMath::Vector3f > m_outMesh
 

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