ArbitraryHole (const Point center, const std::vector< Point > &points)
virtual unsigned int n_points () const
virtual Pointpoint (const unsigned int n) const
virtual Pointinside () 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.