Cleaning up decimation, moving to sets.

This commit is contained in:
David Williams
2007-09-23 23:34:49 +00:00
parent 15692f7a3f
commit 42e4526498
5 changed files with 44 additions and 21 deletions

View File

@ -37,8 +37,6 @@ namespace Ogre
class SurfaceVertex
{
public:
SurfaceEdgeIterator edge;
SurfaceVertex();
SurfaceVertex(UIntVector3 positionToSet);
SurfaceVertex(UIntVector3 positionToSet, Vector3 normalToSet);
@ -46,18 +44,23 @@ namespace Ogre
friend bool operator==(const SurfaceVertex& lhs, const SurfaceVertex& rhs);
friend bool operator < (const SurfaceVertex& lhs, const SurfaceVertex& rhs);
const UIntVector3& getPosition(void) const;
float getAlpha(void) const;
const SurfaceEdgeIterator& getEdge(void) const;
const Vector3& getNormal(void) const;
void setNormal(const Vector3& normalToSet);
const UIntVector3& getPosition(void) const;
void setAlpha(float alphaToSet);
void setEdge(const SurfaceEdgeIterator& edgeToSet);
void setNormal(const Vector3& normalToSet);
std::string toString(void);
float alpha;
private:
UIntVector3 position;
Vector3 normal;
float alpha;
SurfaceEdgeIterator edge;
unsigned long m_uHash;
};