Added support for point and line primitives.
Added SortByPType and DeterminePType (anon.) steps Optimized ASE, fixed 3DS. Rewrite all loaders to conform to the api changes. Optimized normal computation code in LWOLoader.cpp Added new unit tests Added test file for AC3D (good old wuson again) git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@167 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -307,6 +307,7 @@ void SMDImporter::CreateOutputMeshes()
|
||||
aiMesh*& pcMesh = this->pScene->mMeshes[i] = new aiMesh();
|
||||
ai_assert(!aaiFaces[i].empty()); // should not be empty ...
|
||||
|
||||
pcMesh->mPrimitiveTypes = aiPrimitiveType_TRIANGLE;
|
||||
pcMesh->mNumVertices = (unsigned int)aaiFaces[i].size()*3;
|
||||
pcMesh->mNumFaces = (unsigned int)aaiFaces[i].size();
|
||||
pcMesh->mMaterialIndex = i;
|
||||
@@ -341,7 +342,7 @@ void SMDImporter::CreateOutputMeshes()
|
||||
pcMesh->mFaces[iFace].mIndices = new unsigned int[3];
|
||||
pcMesh->mFaces[iFace].mNumIndices = 3;
|
||||
|
||||
// fill the vertices (hardcode the loop for performance)
|
||||
// fill the vertices
|
||||
unsigned int iSrcFace = aaiFaces[i][iFace];
|
||||
SMD::Face& face = this->asTriangles[iSrcFace];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user