https://mooseframework.inl.gov
BoundingBoxIntersectionHelper.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "libmesh/mesh.h"
13 
14 namespace libMesh
15 {
16 class BoundingBox;
17 }
18 
24 {
25 public:
31  BoundingBoxIntersectionHelper(const libMesh::BoundingBox & bbox, const unsigned int dim);
32 
37  libMesh::Point intersection(const libMesh::Point & point, const libMesh::Point & direction) const;
38 
39 private:
43  const std::unique_ptr<libMesh::Mesh> _mesh;
46 };
libMesh::Point intersection(const libMesh::Point &point, const libMesh::Point &direction) const
unsigned int dim
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
libMesh::Real _hmax
hmax for the dummy element
const std::unique_ptr< libMesh::Mesh > _mesh
Dummy mesh that contains a single element used for TraceRayTools intersection methods.
libMesh::Parallel::Communicator _comm
Dummy communicator for the dummy mesh.
BoundingBoxIntersectionHelper(const libMesh::BoundingBox &bbox, const unsigned int dim)
Constructor.
Helper class that computes the intersection of a line segment defined by a point and a direction and ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real