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,4 +1,5 @@
|
||||
|
||||
#include "UnitTestPCH.h"
|
||||
#include "utGenNormals.h"
|
||||
|
||||
|
||||
@@ -6,8 +7,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION (GenNormalsTest);
|
||||
|
||||
void GenNormalsTest :: setUp (void)
|
||||
{
|
||||
this->piProcess = new GenVertexNormalsProcess();
|
||||
this->pcMesh = new aiMesh();
|
||||
piProcess = new GenVertexNormalsProcess();
|
||||
pcMesh = new aiMesh();
|
||||
pcMesh->mPrimitiveTypes = aiPrimitiveType_TRIANGLE;
|
||||
pcMesh->mNumFaces = 1;
|
||||
pcMesh->mFaces = new aiFace[1];
|
||||
pcMesh->mFaces[0].mIndices = new unsigned int[pcMesh->mFaces[0].mNumIndices = 3];
|
||||
@@ -29,6 +31,6 @@ void GenNormalsTest :: tearDown (void)
|
||||
|
||||
void GenNormalsTest :: testSimpleTriangle (void)
|
||||
{
|
||||
this->piProcess->GenMeshVertexNormals(pcMesh,0);
|
||||
piProcess->GenMeshVertexNormals(pcMesh,0);
|
||||
CPPUNIT_ASSERT(0 != pcMesh->mNormals);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user