Verified Commit e8764dd4 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

assimp: remove now useless throw

parent 5f87cb54
Pipeline #14066 passed with stage
in 43 minutes and 32 seconds
...@@ -163,15 +163,7 @@ unsigned recurseBuildMesh ( ...@@ -163,15 +163,7 @@ unsigned recurseBuildMesh (
for (uint32_t j = 0; j < input_mesh->mNumFaces; j++) for (uint32_t j = 0; j < input_mesh->mNumFaces; j++)
{ {
aiFace& face = input_mesh->mFaces[j]; aiFace& face = input_mesh->mFaces[j];
if (face.mNumIndices != 3) { assert(face.mNumIndices == 3 && "The size of the face is not valid.");
std::stringstream ss;
ss << "Mesh " << input_mesh->mName.C_Str() << " has a face with "
<< face.mNumIndices << " vertices. This is not supported\n";
ss << "Node name is: " << node->mName.C_Str() << "\n";
ss << "Mesh index: " << i << "\n";
ss << "Face index: " << j << "\n";
throw std::invalid_argument (ss.str());
}
tv.triangles_.push_back (fcl::Triangle(vertices_offset + face.mIndices[0], tv.triangles_.push_back (fcl::Triangle(vertices_offset + face.mIndices[0],
vertices_offset + face.mIndices[1], vertices_offset + face.mIndices[1],
vertices_offset + face.mIndices[2])); vertices_offset + face.mIndices[2]));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment