#ifndef __IndexedSurfacePatch_H__ #define __IndexedSurfacePatch_H__ #include #include #include "Constants.h" #include "IntegralVector3.h" #include "SurfaceTypes.h" #include "SurfaceVertex.h" #include "VolumeIterator.h" namespace Ogre { class IndexedSurfacePatch { public: IndexedSurfacePatch(bool allowDuplicateVertices); ~IndexedSurfacePatch(); void addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2); void fillVertexAndIndexData(std::vector& vecVertices, std::vector& vecIndices); //private: std::vector m_vecTriangleIndices; std::vector m_vecVertices; long int vertexIndices[OGRE_REGION_SIDE_LENGTH*2+1][OGRE_REGION_SIDE_LENGTH*2+1][OGRE_REGION_SIDE_LENGTH*2+1]; private: bool m_AllowDuplicateVertices; }; } #endif /* __IndexedSurfacePatch_H__ */