libMesh
Public Member Functions | List of all members
libMesh::TriangleInterface::Hole Class Referenceabstract

An abstract class for defining a 2-dimensional hole. More...

#include <mesh_triangle_holes.h>

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

Public Member Functions

 Hole ()
 Constructor. More...
 
virtual ~Hole ()
 Destructor. More...
 
virtual unsigned int n_points () const =0
 The number of geometric points which define the hole. More...
 
virtual Point point (const unsigned int n) const =0
 Return the nth point defining the hole. More...
 
virtual Point inside () const =0
 Return an (arbitrary) point which lies inside the hole. More...
 
virtual std::vector< unsigned intsegment_indices () const
 Starting indices of points for a hole with multiple disconnected boundaries. More...
 

Detailed Description

An abstract class for defining a 2-dimensional hole.

We assume that the connectivity of the hole is implicit in the numbering of the points, controlled by segment_indices vector. The size of segment_indices is equal to the number of segments plus one. Each segment has segment_indices[i+1]-segment_indices[i] connected points, with node segment_indices[i] is connected to node segment_indices[i+1], node segment_indices[i+1] is connected to node segment_indices[i+2], etc, and the last node "wraps around" to connect back to node segment_indices[i].

Author
John W. Peterson
Date
2011

Class for parameterizing 2D holes to be meshed with Triangle.

Definition at line 48 of file mesh_triangle_holes.h.

Constructor & Destructor Documentation

◆ Hole()

libMesh::TriangleInterface::Hole::Hole ( )
inline

Constructor.

Definition at line 54 of file mesh_triangle_holes.h.

54 {}

◆ ~Hole()

virtual libMesh::TriangleInterface::Hole::~Hole ( )
inlinevirtual

Destructor.

Definition at line 59 of file mesh_triangle_holes.h.

59 {}

Member Function Documentation

◆ inside()

virtual Point libMesh::TriangleInterface::Hole::inside ( ) const
pure virtual

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

Implemented in libMesh::TriangleInterface::ArbitraryHole, and libMesh::TriangleInterface::PolygonHole.

◆ n_points()

virtual unsigned int libMesh::TriangleInterface::Hole::n_points ( ) const
pure virtual

The number of geometric points which define the hole.

Implemented in libMesh::TriangleInterface::ArbitraryHole, and libMesh::TriangleInterface::PolygonHole.

Referenced by segment_indices().

◆ point()

virtual Point libMesh::TriangleInterface::Hole::point ( const unsigned int  n) const
pure virtual

Return the nth point defining the hole.

Implemented in libMesh::TriangleInterface::ArbitraryHole, and libMesh::TriangleInterface::PolygonHole.

◆ segment_indices()

virtual std::vector<unsigned int> libMesh::TriangleInterface::Hole::segment_indices ( ) const
inlinevirtual

Starting indices of points for a hole with multiple disconnected boundaries.

Reimplemented in libMesh::TriangleInterface::ArbitraryHole.

Definition at line 79 of file mesh_triangle_holes.h.

80  {
81  // default to only one enclosing boundary
82  std::vector<unsigned int> seg;
83  seg.push_back(0);
84  seg.push_back(n_points());
85  return seg;
86  }

References n_points().


The documentation for this class was generated from the following file:
libMesh::TriangleInterface::Hole::n_points
virtual unsigned int n_points() const =0
The number of geometric points which define the hole.