OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Public Attributes | List of all members
Voxel Class Reference
Collaboration diagram for Voxel:
Collaboration graph
[legend]

Public Member Functions

 Voxel ()
 
 Voxel (const Vector_t &min, const Vector_t &max)
 
void scale (const Vector_t &scale)
 
bool intersect (const Ray &r, double &tmin, double &tmax) const
 
bool intersect (const Ray &r) const
 
int intersect (const Triangle &t) const
 
Vector_t extent () const
 
bool isInside (const Vector_t &P) const
 

Public Attributes

Vector_t pts [2]
 

Detailed Description

Definition at line 580 of file BoundaryGeometry.cpp.

Constructor & Destructor Documentation

Voxel::Voxel ( )
inline

Definition at line 582 of file BoundaryGeometry.cpp.

Voxel::Voxel ( const Vector_t min,
const Vector_t max 
)
inline

Definition at line 583 of file BoundaryGeometry.cpp.

References max(), min(), and pts.

Here is the call graph for this function:

Member Function Documentation

Vector_t Voxel::extent ( ) const
inline

Definition at line 646 of file BoundaryGeometry.cpp.

References pts.

Referenced by intersect().

bool Voxel::intersect ( const Ray r,
double &  tmin,
double &  tmax 
) const
inline
bool Voxel::intersect ( const Ray r) const
inline

Definition at line 627 of file BoundaryGeometry.cpp.

References intersect().

Here is the call graph for this function:

int Voxel::intersect ( const Triangle t) const
inline

Definition at line 635 of file BoundaryGeometry.cpp.

References extent(), pts, Triangle::scale(), and scale().

Here is the call graph for this function:

bool Voxel::isInside ( const Vector_t P) const
inline

Definition at line 650 of file BoundaryGeometry.cpp.

References pts.

Referenced by BoundaryGeometry::fastIsInside().

void Voxel::scale ( const Vector_t scale)
inline

Definition at line 587 of file BoundaryGeometry.cpp.

References pts.

Referenced by intersect().

Member Data Documentation

Vector_t Voxel::pts[2]

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