a48  2.0.2
a48::FaceT< Traits > Class Template Reference

Base type for a face. More...

#include <facet.hh>

Inheritance diagram for a48::FaceT< Traits >:
a48::AdaptiveFaceT< Traits >

List of all members.

Public Types

typedef Traits::halfedge_type halfedge_type
 halfedge definition

Public Member Functions

 FaceT ()
 Default Constructor.
 FaceT (halfedge_type *_h)
bool is_boundary (void) const
 Verifies if this face belongs to the mesh boundary.
bool is_triangle (void) const
 Verifies if this face is a triangular face.
void set_halfedge (halfedge_type *_h)
 Sets incident halfedge of this face.
const halfedge_typehalfedge (void) const
halfedge_typehalfedge (void)
 Gets incident halfedge pointing to this face.
unsigned int sides (void) const
 Gets the number of sides of this face.
unsigned int non_boundary_sides (void) const
 Gets the number of non-boundary sides of this face.

Detailed Description

template<class Traits>
class a48::FaceT< Traits >

Base type for a face.

See also:
MeshT
Template Parameters:
TraitsTemplate argument to access mesh-base definitions
Examples:
example_stellarmesht.cc, example_stellarpolicy.cc, and example_traits.h.

Definition at line 23 of file facet.hh.


Member Typedef Documentation

template<class Traits >
typedef Traits::halfedge_type a48::FaceT< Traits >::halfedge_type

halfedge definition

Reimplemented in a48::AdaptiveFaceT< Traits >.

Definition at line 27 of file facet.hh.


Constructor & Destructor Documentation

template<class Traits >
a48::FaceT< Traits >::FaceT ( ) [inline]

Default Constructor.

Definition at line 30 of file facet.hh.

template<class Traits >
a48::FaceT< Traits >::FaceT ( halfedge_type _h) [inline]

Constructor

Parameters:
[in]_hHalfedge this face will point to

Definition at line 35 of file facet.hh.


Member Function Documentation

template<class Traits >
bool a48::FaceT< Traits >::is_boundary ( void  ) const [inline]

Verifies if this face belongs to the mesh boundary.

Returns:
True if this face is at the boundary

Definition at line 40 of file facet.hh.

template<class Traits >
bool a48::FaceT< Traits >::is_triangle ( void  ) const [inline]

Verifies if this face is a triangular face.

Returns:
True if this face is a triangular face

Definition at line 52 of file facet.hh.

References a48::FaceT< Traits >::sides().

template<class Traits >
const halfedge_type * a48::FaceT< Traits >::halfedge ( void  ) const [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns:
Constant halfedge pointer

Definition at line 60 of file facet.hh.

template<class Traits >
halfedge_type* a48::FaceT< Traits >::halfedge ( void  ) [inline]

Gets incident halfedge pointing to this face.

Returns:
Halfedge pointer

Definition at line 64 of file facet.hh.

template<class Traits >
unsigned int a48::FaceT< Traits >::sides ( void  ) const [inline]

Gets the number of sides of this face.

Returns:
Number of sides

Definition at line 69 of file facet.hh.

References a48::FaceT< Traits >::halfedge().

template<class Traits >
unsigned int a48::FaceT< Traits >::non_boundary_sides ( void  ) const [inline]

Gets the number of non-boundary sides of this face.

Returns:
Number of non-boundary sides

Definition at line 79 of file facet.hh.

References a48::FaceT< Traits >::halfedge().

template<class Traits >
void a48::FaceT< Traits >::set_halfedge ( halfedge_type _h) [inline]

Sets incident halfedge of this face.

Parameters:
[in]_hHalfedge pointer

Definition at line 91 of file facet.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Typedefs