Cleaning up decimation, moving to sets.

This commit is contained in:
David Williams
2007-09-23 23:08:06 +00:00
parent cd26634131
commit 15692f7a3f
5 changed files with 44 additions and 90 deletions

View File

@ -36,28 +36,34 @@ namespace Ogre
class SurfaceVertex
{
public:
Vector3 normal;
float alpha;
public:
SurfaceEdgeIterator edge;
SurfaceVertex();
SurfaceVertex(UIntVector3 positionToSet);
SurfaceVertex(UIntVector3 positionToSet, Vector3 normalToSet);
friend bool operator==(const SurfaceVertex& lhs, const SurfaceVertex& rhs);
friend bool operator < (const SurfaceVertex& lhs, const SurfaceVertex& rhs);
const UIntVector3& getPosition(void) const;
const Vector3& getNormal(void) const;
void setNormal(const Vector3& normalToSet);
std::string toString(void);
float alpha;
private:
UIntVector3 position;
Vector3 normal;
unsigned long m_uHash;
};
bool operator==(const SurfaceVertex& lhs, const SurfaceVertex& rhs);
bool operator < (const SurfaceVertex& lhs, const SurfaceVertex& rhs);
//bool operator < (const SurfaceVertexIterator& lhs, const SurfaceVertexIterator& rhs);