#include <grid_static_obj.h>
Public Member Functions | |
template<class FLT2 > | |
void | Create (const Box3< FLT2 > &b, int ncell, const ObjType &init, bool Inflate=true) |
void | Create (const Point3i &_siz, const ObjType &init) |
ObjType & | Grid (const Point3< FLT > &p) |
ObjType & | Grid (const int x, const int y, const int z) |
Date le coordinate ritorna la cella. | |
int | GridIndF (const Point3< FLT > &p) const |
int | GridIndI (const Point3i &pi) const |
GridStaticObj () | |
void | Init (const ObjType &val) |
int | size () const |
~GridStaticObj () | |
Public Attributes | |
ObjType * | grid |
La matriciona della griglia. |
Static Uniform Grid A simple Spatial grid of object. Kept in the most trivial way. Every cell is allocated and contains one istance of the template class.
Definition at line 62 of file grid_static_obj.h.
vcg::GridStaticObj< ObjType, FLT >::GridStaticObj | ( | ) | [inline] |
Definition at line 71 of file grid_static_obj.h.
vcg::GridStaticObj< ObjType, FLT >::~GridStaticObj | ( | ) | [inline] |
Definition at line 72 of file grid_static_obj.h.
void vcg::GridStaticObj< ObjType, FLT >::Create | ( | const Box3< FLT2 > & | b, | |
int | ncell, | |||
const ObjType & | init, | |||
bool | Inflate = true | |||
) | [inline] |
Crea una griglia di un dato bbox e con un certo numero di elem. il bbox viene gonfiato appositamente.
Definition at line 116 of file grid_static_obj.h.
void vcg::GridStaticObj< ObjType, FLT >::Create | ( | const Point3i & | _siz, | |
const ObjType & | init | |||
) | [inline] |
Definition at line 99 of file grid_static_obj.h.
ObjType& vcg::GridStaticObj< ObjType, FLT >::Grid | ( | const Point3< FLT > & | p | ) | [inline] |
Definition at line 83 of file grid_static_obj.h.
ObjType& vcg::GridStaticObj< ObjType, FLT >::Grid | ( | const int | x, | |
const int | y, | |||
const int | z | |||
) | [inline] |
Date le coordinate ritorna la cella.
Definition at line 80 of file grid_static_obj.h.
int vcg::GridStaticObj< ObjType, FLT >::GridIndF | ( | const Point3< FLT > & | p | ) | const [inline] |
Definition at line 97 of file grid_static_obj.h.
int vcg::GridStaticObj< ObjType, FLT >::GridIndI | ( | const Point3i & | pi | ) | const [inline] |
Definition at line 85 of file grid_static_obj.h.
void vcg::GridStaticObj< ObjType, FLT >::Init | ( | const ObjType & | val | ) | [inline] |
Definition at line 73 of file grid_static_obj.h.
int vcg::GridStaticObj< ObjType, FLT >::size | ( | ) | const [inline] |
Definition at line 69 of file grid_static_obj.h.
ObjType* vcg::GridStaticObj< ObjType, FLT >::grid |
La matriciona della griglia.
Definition at line 67 of file grid_static_obj.h.