OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::shapes::ShapeAnalyzerFace Class Reference

Class storing information about a single face of a generated/loaded mesh. More...

#include </home/chochlik/devel/oglplus/include/oglplus/shapes/analyzer.hpp>

Public Member Functions

GLuint Index (void) const
 Returns the index of the face in the mesh that it belongs to.
 
GLuint Arity (void) const
 The number of edges (or vertices) of this face. More...
 
ShapeAnalyzerVert Vert (GLuint vert_index) const
 Returns the vert_index-th vertex of this face. More...
 
ShapeAnalyzerEdge Edge (GLuint edge_index) const
 Returns the edge_index-th edge of this face. More...
 
bool HasAdjacentFace (GLuint edge_index) const
 Returns true if the edge_index-th edge has an adjacent face. More...
 
ShapeAnalyzerFace AdjacentFace (GLuint edge_index) const
 Returns the edge_index-th adjacent face. More...
 

Detailed Description

Class storing information about a single face of a generated/loaded mesh.

See Also
ShapeAnalyzer
ShapeAnalyzerVert
ShapeAnalyzerEdge

Member Function Documentation

ShapeAnalyzerFace oglplus::shapes::ShapeAnalyzerFace::AdjacentFace ( GLuint  edge_index) const

Returns the edge_index-th adjacent face.

Precondition
(edge_index < Arity()) && (HasAdjacentFace(edge_index))
See Also
Arity()
Vert()
AdjacentFace()
GLuint oglplus::shapes::ShapeAnalyzerFace::Arity ( void  ) const

The number of edges (or vertices) of this face.

See Also
Vert()
Edge()
AdjacentFace()
ShapeAnalyzerEdge oglplus::shapes::ShapeAnalyzerFace::Edge ( GLuint  edge_index) const

Returns the edge_index-th edge of this face.

Precondition
edge_index < Arity()
See Also
Arity()
Vert()
AdjacentFace()
Examples:
standalone/001_shape2dot.cpp.
bool oglplus::shapes::ShapeAnalyzerFace::HasAdjacentFace ( GLuint  edge_index) const

Returns true if the edge_index-th edge has an adjacent face.

Precondition
edge_index < Arity()
See Also
Arity()
Vert()
AdjacentFace()
ShapeAnalyzerVert oglplus::shapes::ShapeAnalyzerFace::Vert ( GLuint  vert_index) const

Returns the vert_index-th vertex of this face.

Precondition
vert_index < Arity()
See Also
Arity()
Edge()
AdjacentFace()

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/shapes/analyzer.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).