OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Voxel Class Reference
Collaboration diagram for Voxel:

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

Constructor & Destructor Documentation

◆ Voxel() [1/2]

Voxel::Voxel ( )
inline

Definition at line 833 of file BoundaryGeometry.cpp.

Referenced by intersect().

◆ Voxel() [2/2]

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

Definition at line 834 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 897 of file BoundaryGeometry.cpp.

References pts.

Referenced by intersect().

◆ intersect() [1/3]

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

Definition at line 878 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 850 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:

◆ intersect() [3/3]

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

Definition at line 886 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 & P) const
inline

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