www.mooseframework.org
ElementsIntersectedByPlane.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "Moose.h"
13 
14 // forward declares
15 class MooseMesh;
16 
17 namespace libMesh
18 {
19 class Point;
20 class Plane;
21 class MeshBase;
22 class Elem;
23 }
24 
25 namespace Moose
26 {
35 void elementsIntersectedByPlane(const Point & p0,
36  const Point & normal,
37  const MeshBase & mesh,
38  std::vector<const Elem *> & intersected_elems);
39 
49 void elementsIntersectedByPlane(const Point & p0,
50  const Point & p1,
51  const Point & p2,
52  const MeshBase & mesh,
53  std::vector<const Elem *> & intersected_elems);
54 }
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:88
void elementsIntersectedByPlane(const Point &p0, const Point &normal, const MeshBase &mesh, std::vector< const Elem *> &intersected_elems)
Find all of the elements intersected by a plane.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...