All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GU_NeighbourList Class Reference

#include <GU_NeighbourList.h>

Public Types

typedef GA_Index IdxType
typedef UT_ValArray< IdxTypeIdxArrayType

Public Member Functions

 GU_NeighbourList ()
virtual ~GU_NeighbourList ()
void build (const GU_Detail *gdp, const GU_NeighbourListParms &parms)
 Build the neighbour list structure from the given gdp. More...
void clearLists ()
 Erases our storage. More...
void getNeighbours (int pointidx, const GU_Detail *gdp, UT_Array< GA_Offset > &ptlist) const
int64 getMemoryUsage () const

Detailed Description

GU_NeighbourList This class associates with each point in the provided geometry a fixed interaction radius. Based on this interaction radius, a list of neighbour points can be efficiently determined for each point in the geometry.

Definition at line 90 of file GU_NeighbourList.h.

Member Typedef Documentation

Definition at line 93 of file GU_NeighbourList.h.

Constructor & Destructor Documentation

GU_NeighbourList::GU_NeighbourList ( )
virtual GU_NeighbourList::~GU_NeighbourList ( )

Member Function Documentation

void GU_NeighbourList::build ( const GU_Detail gdp,
const GU_NeighbourListParms parms 

Build the neighbour list structure from the given gdp.

void GU_NeighbourList::clearLists ( )

Erases our storage.

int64 GU_NeighbourList::getMemoryUsage ( ) const
void GU_NeighbourList::getNeighbours ( int  pointidx,
const GU_Detail gdp,
UT_Array< GA_Offset > &  ptlist 
) const

Fills the giving point array with the list of neighbours of the given point index. Out of range point indices will be return empty lists. If the gdp has too few points, the out of range neighbours are ignored.

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