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. More... | |
| bool | intersect (const LineSegment &l, libMesh::Point &intersect_p) const |
| Check if a line segment intersects this triangle. More... | |
| bool | intersect (const LineSegment &line_segment) const override |
| Check if a line segment intersects this triangle, without returning the intersection point. More... | |
| Ball | computeBoundingBall () const override |
| Compute a bounding ball for this triangle. More... | |
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 18 of file Triangle.C.
|
overridedefault |
|
overridevirtual |
Compute a bounding ball for this triangle.
Implements GeometryBase.
Definition at line 88 of file Triangle.C.
| bool Triangle::intersect | ( | const LineSegment & | l, |
| libMesh::Point & | intersect_p | ||
| ) | const |
Check if a line segment intersects this triangle.
Definition at line 35 of file Triangle.C.
Referenced by intersect().
|
overridevirtual |
Check if a line segment intersects this triangle, without returning the intersection point.
Implements GeometryBase.
Definition at line 81 of file Triangle.C.
| Point Triangle::normal | ( | ) | const |
Normal vector of the triangle.
Definition at line 23 of file Triangle.C.
|
private |
Definition at line 50 of file Triangle.h.
Referenced by computeBoundingBall(), intersect(), and normal().
|
private |
Definition at line 50 of file Triangle.h.
Referenced by computeBoundingBall(), intersect(), and normal().
|
private |
Definition at line 50 of file Triangle.h.
Referenced by computeBoundingBall(), intersect(), and normal().
1.8.14