Refactor AABB class

This commit is contained in:
2021-02-08 00:14:23 +01:00
parent 5a12607b61
commit e871a989b4
5 changed files with 38 additions and 28 deletions

View File

@@ -53,7 +53,7 @@ namespace openVulkanoCpp::Scene
void Geometry::Init(aiMesh* mesh)
{
#ifdef ASSIMP_AVAILABLE
aabb.Init();
aabb.Reset();
Init(mesh->mNumVertices, mesh->mNumFaces * 3); // Reserve the space for the data
for (unsigned int i = 0; i < mesh->mNumVertices; i++)
{