Cleaning up decimation.

This commit is contained in:
David Williams
2007-09-27 23:17:27 +00:00
parent f82aaad082
commit 780f52dd9e
4 changed files with 29 additions and 14 deletions

View File

@ -45,11 +45,15 @@ namespace Ogre
bool operator == (const SurfaceTriangle& lhs, const SurfaceTriangle& rhs)
{
return (*lhs.edge == *rhs.edge);
//Edges are unique in the set, so if the two positions are the same the
//two iterators must also be the same. So we just check the iterators.
return (lhs.edge == rhs.edge);
}
bool operator < (const SurfaceTriangle& lhs, const SurfaceTriangle& rhs)
{
//Unlike the equality operator, we can't compare iterators.
//So dereference and compare the results.
return (*lhs.edge < *rhs.edge);
}
}