#include <lib_sculptbrush.h>
Iterates over all the polygons that are connected to a specified vertex.
Public Member Functions | |
Bool | Init (const SculptObject *pObj, Int32 vertex) |
void | Next () |
Bool | IsValid () |
CPolygon | GetPolygon () |
Int32 | GetIndex () |
Static Public Member Functions | |
static SculptPointPolysIterator * | Alloc () |
static void | Free (SculptPointPolysIterator *&itr) |
Private Member Functions | |
SculptPointPolysIterator () | |
~SculptPointPolysIterator () | |
|
private |
|
private |
|
static |
Allocates a SculptPointPolysIterator object. Destroy the allocated SculptPointPolysIterator object with Free(). Use AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs SculptPointPolysIterator objects allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope.
[in,out] | itr | The SculptPointPolysIterator object to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
Bool Init | ( | const SculptObject * | pObj, |
Int32 | vertex | ||
) |
Initializes the SculptPointPolysIterator for the given SculptObject and vertex index.
[in] | pObj | The SculptObject to iterate over the polygons for. The caller owns the pointed SculptObject. |
[in] | vertex | The vertex to check for connected polygons. |
void Next | ( | ) |
Moves to the next polygon that is connected to the vertex.
Bool IsValid | ( | ) |
After calling Next() checks if the polygon is valid. If it is valid then call GetPolygon() and GetIndex().
CPolygon GetPolygon | ( | ) |
Int32 GetIndex | ( | ) |
Gets the index of the current polygon.