Major API cleanup. Unified formatting & doxygen tags in the public API.
Added factory provider for default log streams. Added default log streams to std::out and std::cerr. Updated VC8 project config, boost workarounds is now working for the viewer. Updated unit test suite. Fixed some minor issues in the postprocessing-framework. BROKEN: DebugDLL build. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@292 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
|
||||
#include "UnitTestPCH.h"
|
||||
#include "utJoinVertices.h"
|
||||
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION (JoinVerticesTest);
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void JoinVerticesTest :: setUp (void)
|
||||
{
|
||||
// construct the process
|
||||
this->piProcess = new JoinVerticesProcess();
|
||||
piProcess = new JoinVerticesProcess();
|
||||
|
||||
// create a quite small mesh for testing purposes -
|
||||
// the mesh itself is *something* but it has redundant vertices
|
||||
this->pcMesh = new aiMesh();
|
||||
pcMesh = new aiMesh();
|
||||
|
||||
pcMesh->mNumVertices = 900;
|
||||
aiVector3D*& pv = pcMesh->mVertices = new aiVector3D[900];
|
||||
@@ -49,16 +51,18 @@ void JoinVerticesTest :: setUp (void)
|
||||
for (unsigned int i = 0; i < 900;++i)pcMesh->mBitangents[i] = 0.f;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void JoinVerticesTest :: tearDown (void)
|
||||
{
|
||||
delete this->pcMesh;
|
||||
delete this->piProcess;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void JoinVerticesTest :: testProcess(void)
|
||||
{
|
||||
// execute the step on the given data
|
||||
this->piProcess->ProcessMesh(this->pcMesh,0);
|
||||
piProcess->ProcessMesh(pcMesh,0);
|
||||
|
||||
// the number of faces shouldn't change
|
||||
CPPUNIT_ASSERT(pcMesh->mNumFaces == 300);
|
||||
|
||||
Reference in New Issue
Block a user