OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Voxel Class Reference
Collaboration diagram for Voxel:
Collaboration graph

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 782 of file BoundaryGeometry.cpp.

Constructor & Destructor Documentation

◆ Voxel() [1/2]

Voxel::Voxel ( )
inline

Definition at line 784 of file BoundaryGeometry.cpp.

◆ Voxel() [2/2]

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

Definition at line 785 of file BoundaryGeometry.cpp.

References pts.

Member Function Documentation

◆ extent()

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

Definition at line 836 of file BoundaryGeometry.cpp.

References pts.

Referenced by intersect().

◆ intersect() [1/3]

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

Definition at line 821 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 827 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< double, 3 > &  P) const
inline

Definition at line 838 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 789 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


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