HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_GridImpl.h File Reference
#include "GU_Grid.h"
#include <GEO/GEO_SurfaceType.h>
#include <UT/UT_Assert.h>
#include <SYS/SYS_Types.h>
+ Include dependency graph for GU_GridImpl.h:

Go to the source code of this file.

Functions

template<typename INT_TYPE , typename FUNCTOR >
void GUiterateGridPoints (const GU_GridT< INT_TYPE > &grid, FUNCTOR &&functor)
 
template<typename INT_TYPE , typename FUNCTOR >
void GUiterateGridPrimitives (const GU_GridT< INT_TYPE > &grid, FUNCTOR &&functor)
 
template<typename INT_TYPE , typename FUNCTOR >
void GUiterateGridVertices (const GU_GridT< INT_TYPE > &grid, FUNCTOR &&functor)
 

Function Documentation

template<typename INT_TYPE , typename FUNCTOR >
void GUiterateGridPoints ( const GU_GridT< INT_TYPE > &  grid,
FUNCTOR &&  functor 
)

This calls functor for each point in grid, as: functor(point, row, col)

Consecutive repeated points in a row are skipped, as well as points at the beginning and end of a wrap.

Unlike the primitive and vertex iteration functions, the points passed to the functor are not in ascending order, they are the points in the grid.

Definition at line 28 of file GU_GridImpl.h.

template<typename INT_TYPE , typename FUNCTOR >
void GUiterateGridPrimitives ( const GU_GridT< INT_TYPE > &  grid,
FUNCTOR &&  functor 
)

This calls functor for each primitive in grid, as: functor(primnum, row, col, primvtxcount, closed)

Definition at line 77 of file GU_GridImpl.h.

template<typename INT_TYPE , typename FUNCTOR >
void GUiterateGridVertices ( const GU_GridT< INT_TYPE > &  grid,
FUNCTOR &&  functor 
)

This calls functor for each vertex in grid, as: functor(vtxnum, row, col, isrowend, iscolend, primnum, primvtxnum)

Definition at line 497 of file GU_GridImpl.h.