Public Member Functions

IndexSet Class Reference

A "set" (since it's ordered, sequence is more correct nomenclature) of three-tuples of zero-indexed vertex indices describing triangles. More...

List of all members.

Public Member Functions

 IndexSet (const IndexSet &other)
IndexSetoperator= (const IndexSet &other)
void add_triangle (boost::uint32_t v1, boost::uint32_t v2, boost::uint32_t v3)
 Add a triangle.
void add_quad (boost::uint32_t v1, boost::uint32_t v2, boost::uint32_t v3, boost::uint32_t v4)
 Add a quadrangle.
void add_convex_polygon (const std::vector< boost::uint32_t > &inds)
 Add a convex polygon.
void clear ()
bool empty () const

Detailed Description

A "set" (since it's ordered, sequence is more correct nomenclature) of three-tuples of zero-indexed vertex indices describing triangles.

For example, (0, 7, 8) describes the triangle formed by vertex 0, 7 and 8. Primitives are specified in counterclockwise order.


Member Function Documentation

void add_convex_polygon ( const std::vector< boost::uint32_t > &  inds  ) 

Add a convex polygon.

Precondition:
inds.size() >= 3

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