libMesh
Public Member Functions | Private Attributes | List of all members
libMesh::TriangleInterface::ArbitraryHole Class Reference

Another concrete instantiation of the hole, this one should be sufficiently general for most non-polygonal purposes. More...

#include <mesh_triangle_holes.h>

Inheritance diagram for libMesh::TriangleInterface::ArbitraryHole:
[legend]

Public Member Functions

 ArbitraryHole (const Point &center, const std::vector< Point > &points)
 The constructor requires a point which lies in the interior of the hole and a reference to a vector of Points defining the hole. More...
 
virtual unsigned int n_points () const libmesh_override
 The number of geometric points which define the hole. More...
 
virtual Point point (const unsigned int n) const libmesh_override
 Return the nth point defining the hole. More...
 
virtual Point inside () const libmesh_override
 Return an (arbitrary) point which lies inside the hole. More...
 

Private Attributes

Point _center
 arbitrary (x,y) location inside the hole More...
 
const std::vector< Point > & _points
 Reference to the vector of points which makes up the hole. More...
 

Detailed Description

Another concrete instantiation of the hole, this one should be sufficiently general for most non-polygonal purposes.

The user supplies, at the time of construction, a reference to a vector of Points which defines the hole (in order of connectivity) and an arbitrary Point which lies inside the hole.

Definition at line 126 of file mesh_triangle_holes.h.

Constructor & Destructor Documentation

libMesh::TriangleInterface::ArbitraryHole::ArbitraryHole ( const Point center,
const std::vector< Point > &  points 
)

The constructor requires a point which lies in the interior of the hole and a reference to a vector of Points defining the hole.

Definition at line 69 of file mesh_triangle_holes.C.

71  : _center(center),
72  _points(points)
73 {}
const std::vector< Point > & _points
Reference to the vector of points which makes up the hole.
Point _center
arbitrary (x,y) location inside the hole

Member Function Documentation

Point libMesh::TriangleInterface::ArbitraryHole::inside ( ) const
virtual

Return an (arbitrary) point which lies inside the hole.

Implements libMesh::TriangleInterface::Hole.

Definition at line 89 of file mesh_triangle_holes.C.

References _center.

90 {
91  return _center;
92 }
Point _center
arbitrary (x,y) location inside the hole
unsigned int libMesh::TriangleInterface::ArbitraryHole::n_points ( ) const
virtual

The number of geometric points which define the hole.

Implements libMesh::TriangleInterface::Hole.

Definition at line 76 of file mesh_triangle_holes.C.

References _points.

77 {
78  return _points.size();
79 }
const std::vector< Point > & _points
Reference to the vector of points which makes up the hole.
Point libMesh::TriangleInterface::ArbitraryHole::point ( const unsigned int  n) const
virtual

Return the nth point defining the hole.

Implements libMesh::TriangleInterface::Hole.

Definition at line 82 of file mesh_triangle_holes.C.

References _points.

83 {
84  libmesh_assert_less (n, _points.size());
85  return _points[n];
86 }
const std::vector< Point > & _points
Reference to the vector of points which makes up the hole.

Member Data Documentation

Point libMesh::TriangleInterface::ArbitraryHole::_center
private

arbitrary (x,y) location inside the hole

Definition at line 146 of file mesh_triangle_holes.h.

Referenced by inside().

const std::vector<Point>& libMesh::TriangleInterface::ArbitraryHole::_points
private

Reference to the vector of points which makes up the hole.

Definition at line 152 of file mesh_triangle_holes.h.

Referenced by n_points(), and point().


The documentation for this class was generated from the following files: