Triangle geometry helper. More...
#include <Triangle.h>
Public Member Functions | |
| Triangle ()=default | |
| Triangle (const libMesh::Point &p0, const libMesh::Point &p1, const libMesh::Point &p2) | |
| ~Triangle () override=default | |
| libMesh::Point | normal () const |
| Normal vector of the triangle. | |
| bool | intersect (const LineSegment &l, libMesh::Point &intersect_p) const |
| Check if a line segment intersects this triangle. | |
| bool | intersect (const LineSegment &line_segment) const override |
| Check if a line segment intersects this triangle, without returning the intersection point. | |
| Ball | computeBoundingBall () const override |
| Compute a bounding ball for this triangle. | |
Private Attributes | |
| libMesh::Point | _p0 |
| libMesh::Point | _p1 |
| libMesh::Point | _p2 |
Triangle geometry helper.
Definition at line 21 of file Triangle.h.
|
default |
| Triangle::Triangle | ( | const libMesh::Point & | p0, |
| const libMesh::Point & | p1, | ||
| const libMesh::Point & | p2 | ||
| ) |
Definition at line 19 of file Triangle.C.
|
overridedefault |
|
overridevirtual |
Compute a bounding ball for this triangle.
Implements GeometryBase.
Definition at line 91 of file Triangle.C.
Referenced by SurfaceTri3::computeBoundingBall().
| bool Triangle::intersect | ( | const LineSegment & | l, |
| libMesh::Point & | intersect_p | ||
| ) | const |
Check if a line segment intersects this triangle.
Definition at line 38 of file Triangle.C.
Referenced by SurfaceTri3::intersect(), and intersect().
|
overridevirtual |
Check if a line segment intersects this triangle, without returning the intersection point.
Implements GeometryBase.
Definition at line 84 of file Triangle.C.
| Point Triangle::normal | ( | ) | const |
Normal vector of the triangle.
Definition at line 24 of file Triangle.C.
|
private |
Definition at line 50 of file Triangle.h.
Referenced by computeBoundingBall(), and normal().
|
private |
Definition at line 50 of file Triangle.h.
Referenced by computeBoundingBall(), and normal().
|
private |
Definition at line 50 of file Triangle.h.
Referenced by computeBoundingBall(), and normal().