libMesh
|
A concrete instantiation of the Hole class that describes polygonal (triangular, square, pentagonal, ...) holes. More...
#include <mesh_triangle_holes.h>
Public Member Functions | |
PolygonHole (const Point ¢er, Real radius, unsigned int n_points) | |
Constructor specifying the center, radius, and number of points which comprise the hole. More... | |
virtual unsigned int | n_points () const override |
The number of geometric points which define the hole. More... | |
virtual Point | point (const unsigned int n) const override |
Return the nth point defining the hole. More... | |
virtual Point | inside () const override |
Return an (arbitrary) point which lies inside the hole. More... | |
virtual std::vector< unsigned int > | segment_indices () const |
Starting indices of points for a hole with multiple disconnected boundaries. More... | |
Private Attributes | |
Point | _center |
(x,y) location of the center of the hole More... | |
Real | _radius |
circular hole radius More... | |
unsigned int | _n_points |
number of points used to describe the hole. More... | |
A concrete instantiation of the Hole class that describes polygonal (triangular, square, pentagonal, ...) holes.
Definition at line 97 of file mesh_triangle_holes.h.
|
overridevirtual |
Return an (arbitrary) point which lies inside the hole.
Implements libMesh::TriangleInterface::Hole.
Definition at line 56 of file mesh_triangle_holes.C.
|
overridevirtual |
The number of geometric points which define the hole.
Implements libMesh::TriangleInterface::Hole.
Definition at line 41 of file mesh_triangle_holes.C.
Return the nth point defining the hole.
Implements libMesh::TriangleInterface::Hole.
Definition at line 46 of file mesh_triangle_holes.C.
References libMesh::pi, and libMesh::Real.
|
inlinevirtualinherited |
Starting indices of points for a hole with multiple disconnected boundaries.
Reimplemented in libMesh::TriangleInterface::ArbitraryHole.
Definition at line 79 of file mesh_triangle_holes.h.
References libMesh::TriangleInterface::Hole::n_points().
|
private |
(x,y) location of the center of the hole
Definition at line 117 of file mesh_triangle_holes.h.
|
private |
number of points used to describe the hole.
The actual points can be generated knowing the center and radius. For example, n_points=3 would generate a triangular hole.
Definition at line 129 of file mesh_triangle_holes.h.
|
private |
circular hole radius
Definition at line 122 of file mesh_triangle_holes.h.