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 override
 The number of geometric points which define the hole. More...
 
virtual Point point (const unsigned int n) const override
 Return the nth point defining the hole. More...
 
virtual Point inside () const 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

◆ ArbitraryHole()

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.

Member Function Documentation

◆ inside()

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

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

Implements libMesh::TriangleInterface::Hole.

◆ n_points()

virtual unsigned int libMesh::TriangleInterface::ArbitraryHole::n_points ( ) const
overridevirtual

The number of geometric points which define the hole.

Implements libMesh::TriangleInterface::Hole.

◆ point()

virtual Point libMesh::TriangleInterface::ArbitraryHole::point ( const unsigned int  n) const
overridevirtual

Return the nth point defining the hole.

Implements libMesh::TriangleInterface::Hole.

Member Data Documentation

◆ _center

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

arbitrary (x,y) location inside the hole

Definition at line 146 of file mesh_triangle_holes.h.

◆ _points

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.


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