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.

00070     :   _center(center),
00071         _points(points)
00072   {}


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.

References _center.

00089   {
00090     return _center;
00091   }

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.

References _points.

00076   {
00077     return _points.size();
00078   }

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.

References _points.

00082     {
00083       libmesh_assert_less (n, _points.size());
00084       return _points[n];
00085     }


Member Data Documentation

arbitrary (x,y) location inside the hole

Definition at line 142 of file mesh_triangle_holes.h.

Referenced by inside().

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

Definition at line 148 of file mesh_triangle_holes.h.

Referenced by n_points(), and point().


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

Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:29 UTC

Hosted By:
SourceForge.net Logo