#include <mesh_triangle_holes.h>
Public Member Functions | |
PolygonHole (const Point ¢er, Real radius, unsigned int n_points) | |
virtual unsigned int | n_points () const override |
virtual Point | point (const unsigned int n) const override |
virtual Point | inside () const override |
Private Attributes | |
Point | _center |
Real | _radius |
unsigned int | _n_points |
A concrete instantiation of the Hole class that describes polygonal (triangular, square, pentagonal, ...) holes.
Definition at line 81 of file mesh_triangle_holes.h.
libMesh::TriangleInterface::PolygonHole::PolygonHole | ( | const Point & | center, |
Real | radius, | ||
unsigned int | n_points | ||
) |
Constructor specifying the center, radius, and number of points which comprise the hole. The points will all lie on a circle of radius r.
Definition at line 32 of file mesh_triangle_holes.C.
|
overridevirtual |
Return an (arbitrary) point which lies inside the hole.
Implements libMesh::TriangleInterface::Hole.
Definition at line 58 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.
|
overridevirtual |
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.
|
private |
(x,y) location of the center of the hole
Definition at line 101 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 113 of file mesh_triangle_holes.h.
|
private |
circular hole radius
Definition at line 106 of file mesh_triangle_holes.h.