OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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 830 of file BoundaryGeometry.cpp.

Constructor & Destructor Documentation

◆ Voxel() [1/2]

Voxel::Voxel ( )
inline

Definition at line 832 of file BoundaryGeometry.cpp.

◆ Voxel() [2/2]

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

Definition at line 833 of file BoundaryGeometry.cpp.

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

Here is the call graph for this function:

Member Function Documentation

◆ extent()

Vector_t Voxel::extent ( ) const
inline

Definition at line 896 of file BoundaryGeometry.cpp.

References pts.

Referenced by intersect().

◆ intersect() [1/3]

bool Voxel::intersect ( const Ray r) const
inline

Definition at line 877 of file BoundaryGeometry.cpp.

References intersect().

Here is the call graph for this function:

◆ intersect() [2/3]

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

◆ intersect() [3/3]

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

Definition at line 885 of file BoundaryGeometry.cpp.

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

Here is the call graph for this function:

◆ isInside()

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

Definition at line 900 of file BoundaryGeometry.cpp.

References cmp_ulp::ge(), cmp_ulp::le(), and pts.

Here is the call graph for this function:

◆ scale()

void Voxel::scale ( const Vector_t scale)
inline

Definition at line 837 of file BoundaryGeometry.cpp.

References pts, and scale().

Referenced by intersect(), and scale().

Here is the call graph for this function:

Member Data Documentation

◆ pts

Vector_t Voxel::pts[2]

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