col::TopoFace Struct Reference

A face is a sorted array of indices into some vertrex array. More...

Collaboration diagram for col::TopoFace:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TopoFace (const unsigned int vertex_indices[], unsigned int size)
 Construct a face from a C array.
 TopoFace (const std::vector< unsigned int > &v)
 Construct a face from a vector.
 TopoFace (const TopoFace &source)
 Copy a face.
 TopoFace (void)
 empty face
void operator= (const TopoFace &source)
 Copy a face.
void set (const unsigned int vertex_indices[], unsigned int size)
 Copy a face from a C array.
void print (void) const
 Print the indices of a face (prints no
at the end).
unsigned int & operator[] (int index)
 Return vertex index of i-th face vertex.
unsigned int operator[] (int index) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
unsigned int size (void) const
 Size of the vertex index array.
void resize (unsigned int newsize)
 Resize the vertex index array.

Public Attributes

std::vector< unsigned int > v
 A face is just an array of indices into some vertex array.

Detailed Description

A face is a sorted array of indices into some vertrex array.

Author:
Gabriel Zachmann


Member Function Documentation

unsigned int & col::TopoFace::operator[] ( int  i  ) 

Return vertex index of i-th face vertex.

Parameters:
i index into face, can be < 0 or >= size()
If the index i into the face is out of bounds [ 0 .. size()-1 ], then it is wrapped around. So face[-1] returns the same as face[size()-1], for instance.


The documentation for this struct was generated from the following files:
Generated on Tue Oct 16 18:13:08 2007 for CollDet by  doxygen 1.5.2