Poster of Linux kernelThe best gift for a Linux geek
TriangleInterface::ArbitraryHole

TriangleInterface::ArbitraryHole

Section: C Library Functions (3) Updated: Thu Apr 7 2011
Local index Up
 

NAME

TriangleInterface::ArbitraryHole -  

SYNOPSIS


#include <mesh_triangle_support.h>

Inherits TriangleInterface::Hole.  

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 385 of file mesh_triangle_support.h.  

Constructor & Destructor Documentation

 

TriangleInterface::ArbitraryHole::ArbitraryHole (const Pointcenter, const std::vector< Point > &points) [inline]

Definition at line 388 of file mesh_triangle_support.h.

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

Member Function Documentation

 

virtual Point TriangleInterface::ArbitraryHole::inside () const [inline, virtual]Return an (arbitrary) point which lies inside the hole.

Implements TriangleInterface::Hole.

Definition at line 415 of file mesh_triangle_support.h.

References _center.

{ return _center;  }
 

virtual unsigned int TriangleInterface::ArbitraryHole::n_points () const [inline, virtual]Required public Hole interface: The number of geometric points which define the hole.

Implements TriangleInterface::Hole.

Definition at line 401 of file mesh_triangle_support.h.

References _points.

{ return _points.size(); }
 

virtual Point TriangleInterface::ArbitraryHole::point (const unsigned intn) const [inline, virtual]Return the nth point defining the hole.

Implements TriangleInterface::Hole.

Definition at line 406 of file mesh_triangle_support.h.

References _points.

  {
    libmesh_assert (n < _points.size());
    return _points[n];
  }
 

Member Data Documentation

 

Point TriangleInterface::ArbitraryHole::_center [private]arbitrary (x,y) location inside the hole

Definition at line 421 of file mesh_triangle_support.h.

Referenced by inside().  

const std::vector<Point>& TriangleInterface::ArbitraryHole::_points [private]Reference to the vector of points which makes up the hole.

Definition at line 427 of file mesh_triangle_support.h.

Referenced by n_points(), and point().

 

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Private Attributes
Detailed Description
Constructor & Destructor Documentation
TriangleInterface::ArbitraryHole::ArbitraryHole (const Pointcenter, const std::vector< Point > &points) [inline]
Member Function Documentation
virtual Point TriangleInterface::ArbitraryHole::inside () const [inline, virtual]Return an (arbitrary) point which lies inside the hole.
virtual unsigned int TriangleInterface::ArbitraryHole::n_points () const [inline, virtual]Required public Hole interface: The number of geometric points which define the hole.
virtual Point TriangleInterface::ArbitraryHole::point (const unsigned intn) const [inline, virtual]Return the nth point defining the hole.
Member Data Documentation
Point TriangleInterface::ArbitraryHole::_center [private]arbitrary (x,y) location inside the hole
const std::vector<Point>& TriangleInterface::ArbitraryHole::_points [private]Reference to the vector of points which makes up the hole.
Author

This document was created by man2html, using the manual pages.
Time: 21:57:47 GMT, April 16, 2011