OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
Voxel Class Reference
Collaboration diagram for Voxel:

Public Member Functions

 Voxel ()
 Voxel (const Vector_t< double, 3 > &min, const Vector_t< double, 3 > &max)
void scale (const Vector_t< double, 3 > &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< double, 3 > extent () const
bool isInside (const Vector_t< double, 3 > &P) const

Public Attributes

Vector_t< double, 3 > pts [2]

Detailed Description

Definition at line 851 of file BoundaryGeometry.cpp.

Constructor & Destructor Documentation

◆ Voxel() [1/2]

Voxel::Voxel ( )
inline

Definition at line 853 of file BoundaryGeometry.cpp.

Referenced by intersect().

Here is the caller graph for this function:

◆ Voxel() [2/2]

Voxel::Voxel ( const Vector_t< double, 3 > & min,
const Vector_t< double, 3 > & max )
inline

Definition at line 855 of file BoundaryGeometry.cpp.

References pts.

Member Function Documentation

◆ extent()

Vector_t< double, 3 > Voxel::extent ( ) const
inline

Definition at line 912 of file BoundaryGeometry.cpp.

References pts.

Referenced by intersect().

Here is the caller graph for this function:

◆ intersect() [1/3]

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

Definition at line 897 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

Definition at line 869 of file BoundaryGeometry.cpp.

References cmp_ulp::ge_zero(), cmp_ulp::gt(), Ray::inv_direction, cmp_ulp::lt(), Ray::origin, pts, and Ray::sign.

Referenced by intersect(), BoundaryGeometry::intersectTinyLineSegmentBoundary(), and BoundaryGeometry::intersectTriangleVoxel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intersect() [3/3]

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

Definition at line 903 of file BoundaryGeometry.cpp.

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

Here is the call graph for this function:

◆ isInside()

bool Voxel::isInside ( const Vector_t< double, 3 > & P) const
inline

Definition at line 916 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< double, 3 > & scale)
inline

Definition at line 859 of file BoundaryGeometry.cpp.

References pts, and scale().

Referenced by intersect(), and scale().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ pts


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