https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SurfaceTri3.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 "SurfaceElement.h"
13#include "Triangle.h"
14
16class SurfaceTri3 : public Triangle, public SurfaceElement
17{
18public:
20 explicit SurfaceTri3(const Elem * elem);
21
22 // Resolve name ambiguity between base classes. The using-declaration also keeps
23 // Triangle's two-argument intersect() overload reachable, which the override
24 // below would otherwise hide.
27
28 // Satisfy the SurfaceElement interface by forwarding to the Triangle primitive.
29 bool intersect(const LineSegment & line_segment) const override
30 {
31 return Triangle::intersect(line_segment);
32 }
34};
Ball primitive: a circle in 2D or a sphere in 3D.
Definition Ball.h:35
The LineSegment class is used by the LineMaterialSamplerBase class and for some ray tracing stuff.
Definition LineSegment.h:31
Base class for a single surface (boundary) element of a closed surface mesh.
const Point & normal() const
Getter for the normal vector.
const Elem & elem() const
Getter for the underlying element.
Derived class for 3-node triangular surface elements (Tri3).
Definition SurfaceTri3.h:17
Ball computeBoundingBall() const override
Compute a bounding ball for this geometry.
Definition SurfaceTri3.h:33
bool intersect(const LineSegment &line_segment) const override
Check if a line segment intersects this geometry.
Definition SurfaceTri3.h:29
Triangle geometry helper.
Definition Triangle.h:22
bool intersect(const LineSegment &l, libMesh::Point &intersect_p) const
Check if a line segment intersects this triangle.
Definition Triangle.C:38
Ball computeBoundingBall() const override
Compute a bounding ball for this triangle.
Definition Triangle.C:91