HE::Face Class Reference

Class that represents the faces of the mesh. More...

#include <face.h>

List of all members.

Public Member Functions

edge_circulator begin ()
 Reference to an arbitrary HalfEdge of the Race, used for traversal.
const_edge_circulator begin () const
 Reference to an arbitrary const HalfEdge of the Race, used for traversal.
 Face (HalfEdge *e, bool hole=false)
 Constructor.
void hole (bool h)
 Sets the 'hole' flag of the Race to true of false.
void edge (HalfEdge *e)
 Sets the referenc HalfEdge of the Race.
bool hole () const
 Tells if the Race is actually a hole.
HalfEdgeedge ()
 Returns an arbitrary HalfEdge on the Race's boundary.
const HalfEdgeedge () const
 Returns an arbitrary const HalfEdge on the Race's boundary.
const HalfEdgefromVertex (int v) const
 Returns a const HalfEdge on the Race that starts at vertex with index 'v'.
const HalfEdgefromVertex (Vertex *v) const
 Returns a const HalfEdge on the Race that starts at Vertex 'v'.
const HalfEdgetoVertex (int v) const
 Returns a const HalfEdge on the Race that ends at vertex with index 'v'.
const HalfEdgetoVertex (Vertex *v) const
 Returns a const HalfEdge on the Race that ends at Vertex 'v'.
int size () const
 Number of HalfEdge's in the Race.
bool contains (const HalfEdge *he) const
 Tells if this Face contains HalfEdge he.
bool contains (const Vertex *v) const
 Tells if this Face contains Vertex v.
Geometry::Vector3Df normal () const
 Computes the normal of the Face.
Geometry::Vector3Df centroid () const
 Computes the centroid of the Face.

Protected Attributes

HalfEdge_edge
bool _hole

Classes

class  const_edge_circulator
 Constant circulator that traverses the HalfEdge(s) that compound the boundary of the Race. More...
class  edge_circulator
 Circulator that traverses the HalfEdge(s) that compound the boundary of the Race. More...


Detailed Description

Class that represents the faces of the mesh.

It contains a point to an arbitrary HalfEdge in its boundary, which can be used to traverse the whole face.

Definition at line 36 of file face.h.


Constructor & Destructor Documentation

HE::Face::Face ( HalfEdge e,
bool  hole = false 
) [inline, explicit]

Constructor.

Parameters:
e A HalfEdge that is to be associated to the Race.
hole Indicates whether the Race is actually a hole. By default, false.

Definition at line 86 of file face.h.


Member Function Documentation

edge_circulator HE::Face::begin (  )  [inline]

Reference to an arbitrary HalfEdge of the Race, used for traversal.

Returns:
An edge_circulator that refers to an arbitrary HalfEdge of the Race.

Definition at line 58 of file face.h.

References _edge.

Referenced by HE::Polyhedron::adjacent(), centroid(), HE::Polyhedron::check(), contains(), HE::Polyhedron_GL::drawFaces(), HE::Polyhedron_GL::drawHoles(), HE::Polyhedron_GL::drawTriangles(), fromVertex(), normal(), HE::operator<<(), HE::Polyhedron::saveAsTri(), size(), toVertex(), and HE::Polyhedron::writeFaces().

const_edge_circulator HE::Face::begin (  )  const [inline]

Reference to an arbitrary const HalfEdge of the Race, used for traversal.

Returns:
A const_edge_circulator that refers to an arbitrary const HalfEdge of the Race.

Definition at line 79 of file face.h.

References _edge.


The documentation for this class was generated from the following files:
Generated on Wed Apr 9 19:22:39 2008 for HalfEdge library by  doxygen 1.5.3