libMesh
Public Member Functions | Private Attributes | List of all members
libMesh::TriangleInterface::Region Class Reference

A class for defining a 2-dimensional region for Triangle. More...

#include <mesh_triangle_holes.h>

Public Member Functions

 Region (const Point &center, Real attribute=0, Real max_area=-std::numeric_limits< Real >::max())
 Constructor. More...
 
Point inside () const
 
Real attribute () const
 
Real max_area () const
 

Private Attributes

const Point _center
 Arbitrary (x,y) location inside the region. More...
 
Real _attribute
 Attribute of the region Default value for attribute is zero. More...
 
Real _max_area
 Maximum area that is allowed for all triangles in this region Default negative maximum area means that no area constraint will be imposed. More...
 

Detailed Description

A class for defining a 2-dimensional region for Triangle.

Definition at line 186 of file mesh_triangle_holes.h.

Constructor & Destructor Documentation

◆ Region()

libMesh::TriangleInterface::Region::Region ( const Point center,
Real  attribute = 0,
Real  max_area = -std::numeric_limits<Real>::max() 
)
inline

Constructor.

Definition at line 192 of file mesh_triangle_holes.h.

195  : _center(center),
197  _max_area(max_area) {}

Member Function Documentation

◆ attribute()

Real libMesh::TriangleInterface::Region::attribute ( ) const
inline

Definition at line 201 of file mesh_triangle_holes.h.

201 { return _attribute; }

References _attribute.

◆ inside()

Point libMesh::TriangleInterface::Region::inside ( ) const
inline

Definition at line 199 of file mesh_triangle_holes.h.

199 { return _center; }

References _center.

◆ max_area()

Real libMesh::TriangleInterface::Region::max_area ( ) const
inline

Definition at line 203 of file mesh_triangle_holes.h.

203 { return _max_area; }

References _max_area.

Member Data Documentation

◆ _attribute

Real libMesh::TriangleInterface::Region::_attribute
private

Attribute of the region Default value for attribute is zero.

Definition at line 215 of file mesh_triangle_holes.h.

Referenced by attribute().

◆ _center

const Point libMesh::TriangleInterface::Region::_center
private

Arbitrary (x,y) location inside the region.

Definition at line 209 of file mesh_triangle_holes.h.

Referenced by inside().

◆ _max_area

Real libMesh::TriangleInterface::Region::_max_area
private

Maximum area that is allowed for all triangles in this region Default negative maximum area means that no area constraint will be imposed.

Definition at line 221 of file mesh_triangle_holes.h.

Referenced by max_area().


The documentation for this class was generated from the following file:
libMesh::TriangleInterface::Region::_max_area
Real _max_area
Maximum area that is allowed for all triangles in this region Default negative maximum area means tha...
Definition: mesh_triangle_holes.h:221
libMesh::TriangleInterface::Region::attribute
Real attribute() const
Definition: mesh_triangle_holes.h:201
libMesh::TriangleInterface::Region::_center
const Point _center
Arbitrary (x,y) location inside the region.
Definition: mesh_triangle_holes.h:209
libMesh::TriangleInterface::Region::_attribute
Real _attribute
Attribute of the region Default value for attribute is zero.
Definition: mesh_triangle_holes.h:215
libMesh::TriangleInterface::Region::max_area
Real max_area() const
Definition: mesh_triangle_holes.h:203