Classes | Public Member Functions | Private Attributes
imesh_half_edge_set Class Reference

A collection of indexed half edges. More...

#include <imesh_half_edge.h>

List of all members.

Classes

class  f_const_iterator
 A const iterator of half edges adjacent to a face. More...
class  f_iterator
 An iterator of half edges adjacent to a face. More...
class  v_const_iterator
 A const iterator of half edges adjacent to a vertex. More...
class  v_iterator
 An iterator of half edges adjacent to a vertex. More...

Public Member Functions

 imesh_half_edge_set ()
 Default Constructor.
 imesh_half_edge_set (const vcl_vector< vcl_vector< unsigned int > > &face_list)
 Construct from a face index list.
void build_from_ifs (const vcl_vector< vcl_vector< unsigned int > > &face_list)
 Build the half edges from an indexed face set.
const imesh_half_edgeoperator[] (unsigned int i) const
 Access by index.
imesh_half_edgeoperator[] (unsigned int i)
 Access by index.
unsigned int size () const
 number of half edges.
void clear ()
 clear the edges.
f_const_iterator face_begin (unsigned int f) const
 Access a face iterator for face.
f_iterator face_begin (unsigned int f)
v_const_iterator vertex_begin (unsigned int v) const
 Access a vertex iterator for vertex.
v_iterator vertex_begin (unsigned int v)
unsigned int num_verts () const
 Count the number of vertices pointed to by these edges.
unsigned int num_faces () const
 Count the number of faces pointed to by these edges.

Private Attributes

vcl_vector< imesh_half_edgehalf_edges_
vcl_vector< unsigned int > vert_to_he_
vcl_vector< unsigned int > face_to_he_

Detailed Description

A collection of indexed half edges.

Definition at line 51 of file imesh_half_edge.h.


Constructor & Destructor Documentation

imesh_half_edge_set::imesh_half_edge_set ( ) [inline]

Default Constructor.

Definition at line 55 of file imesh_half_edge.h.

imesh_half_edge_set::imesh_half_edge_set ( const vcl_vector< vcl_vector< unsigned int > > &  face_list)

Construct from a face index list.

Definition at line 12 of file imesh_half_edge.cxx.


Member Function Documentation

void imesh_half_edge_set::build_from_ifs ( const vcl_vector< vcl_vector< unsigned int > > &  face_list)

Build the half edges from an indexed face set.

Definition at line 20 of file imesh_half_edge.cxx.

void imesh_half_edge_set::clear ( ) [inline]

clear the edges.

Definition at line 71 of file imesh_half_edge.h.

f_const_iterator imesh_half_edge_set::face_begin ( unsigned int  f) const [inline]

Access a face iterator for face.

Parameters:
f.

Definition at line 344 of file imesh_half_edge.h.

f_iterator imesh_half_edge_set::face_begin ( unsigned int  f) [inline]

Definition at line 345 of file imesh_half_edge.h.

unsigned int imesh_half_edge_set::num_faces ( ) const

Count the number of faces pointed to by these edges.

Definition at line 105 of file imesh_half_edge.cxx.

unsigned int imesh_half_edge_set::num_verts ( ) const

Count the number of vertices pointed to by these edges.

Definition at line 93 of file imesh_half_edge.cxx.

const imesh_half_edge& imesh_half_edge_set::operator[] ( unsigned int  i) const [inline]

Access by index.

Definition at line 63 of file imesh_half_edge.h.

imesh_half_edge& imesh_half_edge_set::operator[] ( unsigned int  i) [inline]

Access by index.

Definition at line 65 of file imesh_half_edge.h.

unsigned int imesh_half_edge_set::size ( ) const [inline]

number of half edges.

Definition at line 68 of file imesh_half_edge.h.

v_const_iterator imesh_half_edge_set::vertex_begin ( unsigned int  v) const [inline]

Access a vertex iterator for vertex.

Parameters:
v.

Definition at line 348 of file imesh_half_edge.h.

v_iterator imesh_half_edge_set::vertex_begin ( unsigned int  v) [inline]

Definition at line 349 of file imesh_half_edge.h.


Member Data Documentation

vcl_vector<unsigned int> imesh_half_edge_set::face_to_he_ [private]

Definition at line 360 of file imesh_half_edge.h.

Definition at line 358 of file imesh_half_edge.h.

vcl_vector<unsigned int> imesh_half_edge_set::vert_to_he_ [private]

Definition at line 359 of file imesh_half_edge.h.


The documentation for this class was generated from the following files: