$extrastylesheet
libMesh::TriangleInterface::ArbitraryHole Class Reference

#include <mesh_triangle_holes.h>

Inheritance diagram for libMesh::TriangleInterface::ArbitraryHole:

List of all members.

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.

  : _center(center),
    _points(points)
{}

Member Function Documentation

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

Implements libMesh::TriangleInterface::Hole.

Definition at line 88 of file mesh_triangle_holes.C.

{
  return _center;
}
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.

{
  return _points.size();
}
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.

{
  libmesh_assert_less (n, _points.size());
  return _points[n];
}

Member Data Documentation

arbitrary (x,y) location inside the hole

Definition at line 142 of file mesh_triangle_holes.h.

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: