Go to the documentation of this file.
6 #pragma warning(disable:4786)
149 void Set(
int index,
const double *pos)
151 const double * p = &pos[index*3];
181 const Type&
Get(
int index)
const
183 if ( index == -1 )
return mFind;
200 typename VertexSet::iterator found;
206 int idx = (int)
mVtxs.size();
207 mVtxs.push_back( vtx );
214 return mVtxs[idx].mPos;
217 const Type&
Get(
int idx)
const
231 mVtxs.reserve(reservesize);
238 mVtxs.push_back(vtx);
273 double dx = a[0]-b[0];
274 double dy = a[1]-b[1];
275 double dz = a[2]-b[2];
276 double d2 = (dx*dx)+(dy*dy)+(dz*dz);
280 if ( a[0] < b[0] ) ret =
RD_LESS;
282 else if ( a[1] < b[1] ) ret =
RD_LESS;
284 else if ( a[2] < b[2] ) ret =
RD_LESS;
300 if ( d ==
RD_LESS ) ret =
true;
static VertexVector * mList
int GetVertex(const Type &vtx)
void Set(const Type &vtx)
void Set(int index, const double *pos)
VertexPosition(const double *p)
bool operator()(int v1, int v2) const
std::vector< Type > VertexVector
const VertexVector & GetVertexList(void) const
const Type & Get(int idx) const
void Vl_releaseVertexLookup(VertexLookup vlook)
VertexLookup Vl_createVertexLookup(void)
unsigned int GetVertexCount(void) const
std::vector< Type > VertexVector
static void SetSearch(const Type &match, VertexVector *list)
const double * Vl_getVertices(VertexLookup vlook)
const double * GetPos(int idx) const
unsigned int Vl_getIndex(VertexLookup vlook, const double *pos)
unsigned int GetSize(void) const
void Clear(int reservesize)
static RDIFF relativeDiff(const double *a, const double *b, double magnitude)
unsigned int Vl_getVcount(VertexLookup vlook)
const Type & Get(int index) const
double magnitude(const double3 &v)
std::set< int, VertexLess< Type > > VertexSet