Refactoring work... working on meshes
This commit is contained in:
@ -15,6 +15,7 @@ namespace Ogre
|
||||
SurfacePatch();
|
||||
~SurfacePatch();
|
||||
|
||||
void beginDefinition(void);
|
||||
void endDefinition(void);
|
||||
|
||||
void addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2);
|
||||
@ -22,13 +23,14 @@ namespace Ogre
|
||||
void getVertexAndIndexData(std::vector<SurfaceVertex>& vertexData, std::vector<uint>& indexData);
|
||||
|
||||
private:
|
||||
std::list<SurfaceVertex> m_listVertices;
|
||||
std::set<SurfaceVertex> m_setVertices;
|
||||
std::list<SurfaceTriangle> m_listTriangles;
|
||||
|
||||
std::vector<SurfaceVertex> m_vecVertexData;
|
||||
std::vector<uint> m_vecIndexData;
|
||||
|
||||
uint m_uTrianglesAdded;
|
||||
uint m_uVerticesAdded;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -36,13 +36,13 @@ namespace Ogre
|
||||
/*ulong v0;
|
||||
ulong v1;
|
||||
ulong v2;*/
|
||||
std::list<SurfaceVertex>::iterator v0;
|
||||
std::list<SurfaceVertex>::iterator v1;
|
||||
std::list<SurfaceVertex>::iterator v2;
|
||||
std::set<SurfaceVertex>::iterator v0;
|
||||
std::set<SurfaceVertex>::iterator v1;
|
||||
std::set<SurfaceVertex>::iterator v2;
|
||||
|
||||
SurfaceTriangle();
|
||||
|
||||
SurfaceTriangle(std::list<SurfaceVertex>::iterator v0ToSet, std::list<SurfaceVertex>::iterator v1ToSet, std::list<SurfaceVertex>::iterator v2ToSet);
|
||||
SurfaceTriangle(std::set<SurfaceVertex>::iterator v0ToSet, std::set<SurfaceVertex>::iterator v1ToSet, std::set<SurfaceVertex>::iterator v2ToSet);
|
||||
|
||||
//bool operator < (const SurfaceTriangle& rhs) const;
|
||||
};
|
||||
|
@ -45,7 +45,7 @@ namespace Ogre
|
||||
|
||||
bool operator==(const SurfaceVertex& rhs) const;
|
||||
|
||||
//bool operator < (const SurfaceVertex& rhs) const;
|
||||
bool operator < (const SurfaceVertex& rhs) const;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user