Added MD5 (md5mesh works, md5anim has not yet been tested) and STL. new unittests, although not yet complete (material system, normals). Bugfixes (GFn and MDL7). Added HMP5 support. Rewrote MD2 and MD3 to be more stable.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@77 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
|
||||
#include "utGenNormals.h"
|
||||
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION (GenNormalsTest);
|
||||
|
||||
void GenNormalsTest :: setUp (void)
|
||||
{
|
||||
this->piProcess = new GenVertexNormalsProcess();
|
||||
this->pcMesh = new aiMesh();
|
||||
pcMesh->mNumFaces = 1;
|
||||
pcMesh->mFaces = new aiFace[1];
|
||||
pcMesh->mFaces[0].mIndices = new unsigned int[pcMesh->mFaces[0].mNumIndices = 3];
|
||||
pcMesh->mFaces[0].mIndices[0] = 0;
|
||||
pcMesh->mFaces[0].mIndices[1] = 1;
|
||||
pcMesh->mFaces[0].mIndices[2] = 1;
|
||||
pcMesh->mNumVertices = 3;
|
||||
pcMesh->mVertices = new aiVector3D[3];
|
||||
pcMesh->mVertices[0] = aiVector3D(0.0f,1.0f,6.0f);
|
||||
pcMesh->mVertices[1] = aiVector3D(2.0f,3.0f,1.0f);
|
||||
pcMesh->mVertices[2] = aiVector3D(3.0f,2.0f,4.0f);
|
||||
}
|
||||
|
||||
void GenNormalsTest :: tearDown (void)
|
||||
{
|
||||
delete this->pcMesh;
|
||||
delete this->piProcess;
|
||||
}
|
||||
|
||||
void GenNormalsTest :: testSimpleTriangle (void)
|
||||
{
|
||||
this->piProcess->GenMeshVertexNormals(pcMesh);
|
||||
CPPUNIT_ASSERT(0 != pcMesh->mNormals);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user