Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
GeomTree Class Reference

#include <GeomTree.h>

Classes

struct  Edge
 

Public Member Functions

 GeomTree (const int numVerts, const int numTris, const std::vector< vector3f > &vertices, const std::vector< Uint32 > indices, const std::vector< Uint32 > triFlags)
 
 GeomTree (Serializer::Reader &rd)
 
void Save (Serializer::Writer &wr) const
 
 ~GeomTree ()
 
const Aabb & GetAabb () const
 
void TraceRay (const vector3f &start, const vector3f &dir, isect_t *isect) const
 
void TraceRay (const BVHNode *startNode, const vector3f &a_origin, const vector3f &a_dir, isect_t *isect) const
 
vector3f GetTriNormal (int triIdx) const
 
Uint32 GetTriFlag (int triIdx) const
 
double GetRadius () const
 
const Edge * GetEdges () const
 
int GetNumEdges () const
 
BVHTree * GetTriTree () const
 
BVHTree * GetEdgeTree () const
 
const std::vector< vector3f > & GetVertices () const
 
const Uint32 * GetIndices () const
 
const Uint32 * GetTriFlags () const
 
int GetNumVertices () const
 
int GetNumTris () const
 

Constructor & Destructor Documentation

◆ GeomTree() [1/2]

GeomTree::GeomTree ( const int  numVerts,
const int  numTris,
const std::vector< vector3f > &  vertices,
const std::vector< Uint32 >  indices,
const std::vector< Uint32 >  triFlags 
)
Here is the call graph for this function:

◆ GeomTree() [2/2]

GeomTree::GeomTree ( Serializer::Reader &  rd)
Here is the call graph for this function:

◆ ~GeomTree()

GeomTree::~GeomTree ( )

Member Function Documentation

◆ GetAabb()

const Aabb & GeomTree::GetAabb ( ) const
inline

◆ GetEdges()

const Edge * GeomTree::GetEdges ( ) const
inline

◆ GetEdgeTree()

BVHTree * GeomTree::GetEdgeTree ( ) const
inline

◆ GetIndices()

const Uint32 * GeomTree::GetIndices ( ) const
inline

◆ GetNumEdges()

int GeomTree::GetNumEdges ( ) const
inline

◆ GetNumTris()

int GeomTree::GetNumTris ( ) const
inline

◆ GetNumVertices()

int GeomTree::GetNumVertices ( ) const
inline

◆ GetRadius()

double GeomTree::GetRadius ( ) const
inline

◆ GetTriFlag()

Uint32 GeomTree::GetTriFlag ( int  triIdx) const
inline

◆ GetTriFlags()

const Uint32 * GeomTree::GetTriFlags ( ) const
inline

◆ GetTriNormal()

vector3f GeomTree::GetTriNormal ( int  triIdx) const

◆ GetTriTree()

BVHTree * GeomTree::GetTriTree ( ) const
inline

◆ GetVertices()

const std::vector< vector3f > & GeomTree::GetVertices ( ) const
inline

◆ Save()

void GeomTree::Save ( Serializer::Writer &  wr) const
Here is the call graph for this function:

◆ TraceRay() [1/2]

void GeomTree::TraceRay ( const BVHNode *  startNode,
const vector3f &  a_origin,
const vector3f &  a_dir,
isect_t *  isect 
) const
Here is the call graph for this function:

◆ TraceRay() [2/2]

void GeomTree::TraceRay ( const vector3f &  start,
const vector3f &  dir,
isect_t *  isect 
) const
Here is the call graph for this function:

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