HDK
|
#include "GU_Grid.h"
#include <GEO/GEO_SurfaceType.h>
#include <UT/UT_Assert.h>
#include <SYS/SYS_Types.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) |
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.
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.
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.