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

Base type for a vertex. More...

#include <vertext.hh>

Inheritance diagram for a48::VertexT< Traits >:
a48::AdaptiveVertexT< Traits >

List of all members.

Public Types

typedef Traits::halfedge_type halfedge_type
 halfedge definition
typedef Traits::face_type face_type
 face definition

Public Member Functions

 VertexT ()
 Default Constructor.
 VertexT (halfedge_type *_h)
bool is_boundary (void) const
 Verifies if this vertex belongs to the mesh boundary.
bool on_manifold (void) const
 Verifies if this vertex is on a manifold.
void set_halfedge (halfedge_type *_h)
 Sets incident halfedge of this vertex.
const halfedge_typehalfedge (void) const
halfedge_typehalfedge (void)
 Gets incident halfedge pointing to this vertex.
const halfedge_typestar_next (const halfedge_type *_h) const
halfedge_typestar_next (halfedge_type *_h)
 Gets next incident halfedge circulating this vertex clockwise.
unsigned int degree (void) const
 Gets vertex degree or valency of this vertex.
unsigned int incident_faces (void) const
 Gets the number of incident faces to this vertex.
bool is_flip_ok (void) const
 Verifies if this vertex allows incoming or outcoming halfedges to be flipped.
bool is_weld_ok (void) const
 Verifies if this vertex can be welded.

Detailed Description

template<class Traits>
class a48::VertexT< Traits >

Base type for a vertex.

See also:
MeshT
Template Parameters:
TraitsTemplate argument to access mesh-base definitions

Definition at line 23 of file vertext.hh.


Member Typedef Documentation

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

halfedge definition

Reimplemented in a48::AdaptiveVertexT< Traits >.

Definition at line 27 of file vertext.hh.

template<class Traits >
typedef Traits::face_type a48::VertexT< Traits >::face_type

face definition

Reimplemented in a48::AdaptiveVertexT< Traits >.

Definition at line 28 of file vertext.hh.


Constructor & Destructor Documentation

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

Default Constructor.

Definition at line 31 of file vertext.hh.

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

Constructor

Parameters:
[in]_hHalfedge this vertex will point to

Definition at line 36 of file vertext.hh.


Member Function Documentation

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

Verifies if this vertex belongs to the mesh boundary.

Returns:
True if this vertex is at the boundary

Definition at line 41 of file vertext.hh.

template<class Traits >
bool a48::VertexT< Traits >::on_manifold ( void  ) const [inline]

Verifies if this vertex is on a manifold.

Returns:
True if this vertex is on a manifold

Definition at line 54 of file vertext.hh.

template<class Traits >
const halfedge_type * a48::VertexT< 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 62 of file vertext.hh.

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

Gets incident halfedge pointing to this vertex.

Returns:
Halfedge pointer

Definition at line 66 of file vertext.hh.

template<class Traits >
const halfedge_type * a48::VertexT< Traits >::star_next ( const halfedge_type _h) const [inline]

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

Parameters:
[in]_hPrevious incoming halfedge constant pointer
Returns:
Constant halfedge pointer (0 means end of star)

Definition at line 72 of file vertext.hh.

template<class Traits >
halfedge_type* a48::VertexT< Traits >::star_next ( halfedge_type _h) [inline]

Gets next incident halfedge circulating this vertex clockwise.

Parameters:
[in]_hPrevious incoming halfedge pointer
Returns:
Halfedge pointer (0 means end of star)

Definition at line 82 of file vertext.hh.

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

Gets vertex degree or valency of this vertex.

Returns:
Degree or valency value

Definition at line 92 of file vertext.hh.

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

Gets the number of incident faces to this vertex.

Returns:
Number of incident faces

Definition at line 107 of file vertext.hh.

References a48::VertexT< Traits >::halfedge(), and a48::VertexT< Traits >::star_next().

template<class Traits >
bool a48::VertexT< Traits >::is_flip_ok ( void  ) const [inline]

Verifies if this vertex allows incoming or outcoming halfedges to be flipped.

Returns:
True if this vertex allows edge flipping

Definition at line 117 of file vertext.hh.

References a48::VertexT< Traits >::degree(), and a48::VertexT< Traits >::is_boundary().

template<class Traits >
bool a48::VertexT< Traits >::is_weld_ok ( void  ) const [inline]

Verifies if this vertex can be welded.

Returns:
True if this vertex allows welding

Definition at line 125 of file vertext.hh.

References a48::VertexT< Traits >::degree(), and a48::VertexT< Traits >::is_boundary().

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

Sets incident halfedge of this vertex.

Parameters:
[in]_hHalfedge pointer

Definition at line 135 of file vertext.hh.


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