Cortex
10.0.0-a4
|
#include <PolygonIterator.h>
Public Types | |
typedef std::vector< int >::const_iterator | NumVerticesIterator |
An iterator for the vector returned by MeshPrimitive::vertexIds()->readable() | |
typedef std::vector< int >::const_iterator | VertexIndexIterator |
Public Member Functions | |
PolygonIterator () | |
Uninitialised. | |
PolygonIterator (NumVerticesIterator numVerticesIterator, VertexIndexIterator vertexIndexIterator, int faceVaryingOffset) | |
PolygonIterator & | operator++ () |
PolygonIterator | operator++ (int) |
bool | operator== (const PolygonIterator &rhs) const |
bool | operator!= (const PolygonIterator &rhs) const |
PolygonIterator & | operator= (const PolygonIterator &rhs) |
template<typename ValueIterator > | |
PolygonVertexIterator< ValueIterator > | vertexBegin (ValueIterator valuesBegin) const |
template<typename ValueIterator > | |
PolygonVertexIterator< ValueIterator > | vertexEnd (ValueIterator valuesBegin) const |
Returns the matching end of range iterator for vertexBegin. | |
template<typename ValueIterator > | |
ValueIterator | faceVaryingBegin (ValueIterator valuesBegin) const |
template<typename ValueIterator > | |
ValueIterator | faceVaryingEnd (ValueIterator valuesBegin) const |
Returns the matching end of range iterator for faceVaryingBegin. | |
An iterator type suitable for iterating over the faces of a MeshPrimitive. Generally these wouldn't be created directly, instead being created by calls to MeshPrimitive::faceBegin() and MeshPrimitive::faceEnd().
ValueIterator IECore::PolygonIterator::faceVaryingBegin | ( | ValueIterator | valuesBegin | ) | const |
Returns an iterator to the beginning of the range of facevarying interpolated values for this polygon. Typically you should pass PrimitiveVariable::data::readable()::begin() for the primitive variable you're interested in.
PolygonVertexIterator<ValueIterator> IECore::PolygonIterator::vertexBegin | ( | ValueIterator | valuesBegin | ) | const |
Returns an iterator to the beginning of the range of vertex interpolated values for this polygon. Typically you should pass PrimitiveVariable::data::readable()::begin() for the primitive variable you're interested in.