VerticesVectorSort2 Struct Reference

List of all members.

Public Member Functions

 VerticesVectorSort2 (std::vector< VECTOR3 > *_verts, std::vector< VECTOR3 > *_norms, std::vector< GeometryTriangles::TexCoord > *_texs)
bool operator() (size_t rpStart, size_t rpEnd)

Public Attributes

std::vector< VECTOR3 > * verts
std::vector< VECTOR3 > * norms
std::vector
< GeometryTriangles::TexCoord > * 
texs


Detailed Description

Definition at line 232 of file optimize.cpp.


Constructor & Destructor Documentation

VerticesVectorSort2::VerticesVectorSort2 ( std::vector< VECTOR3 > *  _verts,
std::vector< VECTOR3 > *  _norms,
std::vector< GeometryTriangles::TexCoord > *  _texs 
) [inline]

Definition at line 237 of file optimize.cpp.

00237 : verts(_verts), norms(_norms), texs(_texs) {}


Member Function Documentation

bool VerticesVectorSort2::operator() ( size_t  rpStart,
size_t  rpEnd 
) [inline]

Definition at line 238 of file optimize.cpp.

00239        {
00240               if (verts->at(rpStart) < verts->at(rpEnd))
00241                      return true;
00242               else if (verts->at(rpStart) == verts->at(rpEnd))
00243               {
00244                      if (norms->size() == verts->size())
00245                      {
00246                             if (norms->at(rpStart) < norms->at(rpEnd))
00247                                    return true;
00248                             else if (norms->at(rpStart) == norms->at(rpEnd))
00249                             {
00250                                    if (texs->size() == verts->size())
00251                                           if (texs->at(rpStart) < texs->at(rpEnd))
00252                                                  return true;
00253                             }
00254                      }
00255                      else if (texs->size() == verts->size())
00256                      {
00257                             if (texs->at(rpStart) < texs->at(rpEnd))
00258                                    return true;
00259                      }
00260               }
00261               return false;
00262        }


Member Data Documentation

Definition at line 234 of file optimize.cpp.

Definition at line 235 of file optimize.cpp.

Definition at line 236 of file optimize.cpp.


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

Generated on Tue Mar 10 14:41:39 2009 for VRUT by  doxygen 1.5.5