Helper class that computes the intersection of a line segment defined by a point and a direction and a bounding box. More...
#include <BoundingBoxIntersectionHelper.h>
Public Member Functions | |
BoundingBoxIntersectionHelper (const libMesh::BoundingBox &bbox, const unsigned int dim) | |
Constructor. More... | |
libMesh::Point | intersection (const libMesh::Point &point, const libMesh::Point &direction) const |
Private Attributes | |
libMesh::Parallel::Communicator | _comm |
Dummy communicator for the dummy mesh. More... | |
const std::unique_ptr< libMesh::Mesh > | _mesh |
Dummy mesh that contains a single element used for TraceRayTools intersection methods. More... | |
libMesh::Real | _hmax |
hmax for the dummy element More... | |
Helper class that computes the intersection of a line segment defined by a point and a direction and a bounding box.
Definition at line 23 of file BoundingBoxIntersectionHelper.h.
BoundingBoxIntersectionHelper::BoundingBoxIntersectionHelper | ( | const libMesh::BoundingBox & | bbox, |
const unsigned int | dim | ||
) |
Constructor.
bbox | The bounding box |
dim | The dimension of the bounding box |
Definition at line 22 of file BoundingBoxIntersectionHelper.C.
Point BoundingBoxIntersectionHelper::intersection | ( | const libMesh::Point & | point, |
const libMesh::Point & | direction | ||
) | const |
point
and the direction direction
. Will return RayTracingCommon::invalid_point if no intersection is found. Definition at line 67 of file BoundingBoxIntersectionHelper.C.
|
private |
Dummy communicator for the dummy mesh.
Definition at line 41 of file BoundingBoxIntersectionHelper.h.
|
private |
hmax for the dummy element
Definition at line 45 of file BoundingBoxIntersectionHelper.h.
Referenced by BoundingBoxIntersectionHelper(), and intersection().
|
private |
Dummy mesh that contains a single element used for TraceRayTools intersection methods.
Definition at line 43 of file BoundingBoxIntersectionHelper.h.
Referenced by BoundingBoxIntersectionHelper(), and intersection().