This commit is contained in:
Tim Blume 2022-03-09 01:01:07 +01:00
parent e1a41a526d
commit 3a07155756
4 changed files with 11 additions and 5 deletions

View file

@ -1,6 +1,7 @@
#include "polygon_model.hpp"
#include <iostream>
#include <ostream>
namespace endofthejedi {
PolygonModel::PolygonModel(const std::string &filename)
@ -99,9 +100,7 @@ namespace endofthejedi {
return false;
}
aiNode *node = scene->mRootNode;
const aiMesh* mesh = scene->mMeshes[node->mMeshes[0]];
const aiMesh* mesh = scene->mMeshes[0];
// 3 vertices per face, 3 floats per vertex
m_numVertices = mesh->mNumFaces*3;