libMesh::TriangleInterface::ArbitraryHole Class Reference

#include <mesh_triangle_holes.h>

Inheritance diagram for libMesh::TriangleInterface::ArbitraryHole:

Public Member Functions

 ArbitraryHole (const Point center, const std::vector< Point > &points)
 
virtual unsigned int n_points () const
 
virtual Point point (const unsigned int n) const
 
virtual Point inside () const
 

Private Attributes

Point _center
 
const std::vector< Point > & _points
 

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 122 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 68 of file mesh_triangle_holes.C.

70  : _center(center),
71  _points(points)
72  {}

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 88 of file mesh_triangle_holes.C.

89  {
90  return _center;
91  }
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 75 of file mesh_triangle_holes.C.

76  {
77  return _points.size();
78  }
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 81 of file mesh_triangle_holes.C.

82  {
83  libmesh_assert_less (n, _points.size());
84  return _points[n];
85  }

Member Data Documentation

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

arbitrary (x,y) location inside the hole

Definition at line 142 of file mesh_triangle_holes.h.

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

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

Definition at line 148 of file mesh_triangle_holes.h.


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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:58:01 UTC

Hosted By:
SourceForge.net Logo