2008-07-22 22:52:16 +00:00
|
|
|
#ifndef VTADJ_H
|
|
|
|
#define VTADJ_H
|
|
|
|
|
|
|
|
#include <cppunit/TestFixture.h>
|
|
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
|
2012-04-22 23:00:44 +00:00
|
|
|
#include "assimp/types.h"
|
|
|
|
#include "assimp/mesh.h"
|
2008-07-22 22:52:16 +00:00
|
|
|
#include <VertexTriangleAdjacency.h>
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace Assimp;
|
|
|
|
|
|
|
|
class VTAdjacency : public CPPUNIT_NS :: TestFixture
|
|
|
|
{
|
|
|
|
CPPUNIT_TEST_SUITE (VTAdjacency);
|
|
|
|
CPPUNIT_TEST (largeRandomDataSet);
|
|
|
|
CPPUNIT_TEST (smallDataSet);
|
|
|
|
CPPUNIT_TEST (unreferencedVerticesSet);
|
|
|
|
CPPUNIT_TEST_SUITE_END ();
|
|
|
|
|
|
|
|
public:
|
|
|
|
void setUp (void);
|
|
|
|
void tearDown (void);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void largeRandomDataSet (void);
|
|
|
|
void smallDataSet (void);
|
|
|
|
void unreferencedVerticesSet (void);
|
|
|
|
|
|
|
|
void checkMesh(aiMesh* pMesh);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
VertexTriangleAdjacency* pAdj;
|
|
|
|
aiMesh* pMesh, *pMesh2, *pMesh3;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|