#ifndef __IndexedSurfacePatch_H__ #define __IndexedSurfacePatch_H__ #include "boost/cstdint.hpp" //#include //#include #include #include "Constants.h" #include "SurfaceTypes.h" #include "SurfaceVertex.h" #include "TypeDef.h" #include "VolumeIterator.h" namespace PolyVox { class POLYVOX_API 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]; static long int noOfVerticesSubmitted; static long int noOfVerticesAccepted; static long int noOfTrianglesSubmitted; private: bool m_AllowDuplicateVertices; }; } #endif /* __IndexedSurfacePatch_H__ */