https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14namespace libMesh
15{
16class BoundingBox;
17}
18
24{
25public:
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
39private:
43 const std::unique_ptr<libMesh::Mesh> _mesh;
46};
unsigned int dim
Helper class that computes the intersection of a line segment defined by a point and a direction and ...
libMesh::Parallel::Communicator _comm
Dummy communicator for the dummy mesh.
libMesh::Point intersection(const libMesh::Point &point, const libMesh::Point &direction) const
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.
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real