Refactoring work...

This commit is contained in:
David Williams
2007-08-19 17:09:20 +00:00
parent 7bd433cbf3
commit 47bb4b016d
4 changed files with 108 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
#ifndef __SurfacePatch_H__
#define __SurfacePatch_H__
#include <vector>
#include "SurfaceVertex.h"
#include "SurfaceTriangle.h"
namespace Ogre
{
class SurfacePatch
{
public:
SurfacePatch();
~SurfacePatch();
void addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2);
const std::vector<SurfaceVertex>& getVertexArray();
const std::vector<SurfaceTriangle>& getTriangleArray();
private:
std::vector<SurfaceVertex> m_vecVertices;
std::vector<SurfaceTriangle> m_vecTriangles;
};
}
#endif /* __SurfacePatch_H__ */