Go to the documentation of this file.
19 #include "libmesh/libmesh_config.h"
21 #ifdef LIBMESH_HAVE_TRIANGLE
24 #include "libmesh/mesh_triangle_holes.h"
34 unsigned int n_points_in) :
37 _n_points(n_points_in)
49 const Real theta = static_cast<Real>(n) * 2.0 *
libMesh::pi / static_cast<Real>(_n_points);
51 return Point(_center(0) + _radius*std::cos(theta),
52 _center(1) + _radius*std::sin(theta),
67 const std::vector<Point> & points)
76 const std::vector<Point> & points,
77 const std::vector<unsigned int> & segment_indices)
80 _segment_indices(segment_indices)
85 return _points.size();
91 libmesh_assert_less (n, _points.size());
103 return _segment_indices;
109 #endif // LIBMESH_HAVE_TRIANGLE
std::vector< unsigned int > _segment_indices
virtual Point point(const unsigned int n) const override
Return the nth point defining the hole.
The libMesh namespace provides an interface to certain functionality in the library.
virtual Point point(const unsigned int n) const override
Return the nth point defining the hole.
ArbitraryHole(const Point ¢er, const std::vector< Point > &points)
The constructor requires a point which lies in the interior of the hole and a reference to a vector o...
virtual unsigned int n_points() const override
The number of geometric points which define the hole.
virtual std::vector< unsigned int > segment_indices() const override
Starting indices of points for a hole with multiple disconnected boundaries.
virtual unsigned int n_points() const override
The number of geometric points which define the hole.
A Point defines a location in LIBMESH_DIM dimensional Real space.
virtual Point inside() const override
Return an (arbitrary) point which lies inside the hole.
virtual Point inside() const override
Return an (arbitrary) point which lies inside the hole.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
PolygonHole(const Point ¢er, Real radius, unsigned int n_points)
Constructor specifying the center, radius, and number of points which comprise the hole.