diff --git a/include/hpp/fcl/mesh_loader/assimp.h b/include/hpp/fcl/mesh_loader/assimp.h index 9a54415a68cb20628e079ead110cfd4e3cf32993..27948e2074e7ae8c7ccedf3025ccef0e9ec96759 100644 --- a/include/hpp/fcl/mesh_loader/assimp.h +++ b/include/hpp/fcl/mesh_loader/assimp.h @@ -64,11 +64,6 @@ namespace fcl struct TriangleAndVertices { - void clear() - { - vertices_.clear (); - triangles_.clear (); - } std::vector <fcl::Vec3f> vertices_; std::vector <fcl::Triangle> triangles_; }; @@ -116,8 +111,6 @@ inline void meshFromAssimpScene(const std::string & name, throw std::runtime_error (error.str ()); } - tv.clear(); - buildMesh (scale, scene, scene->mRootNode, (unsigned) mesh->num_vertices, tv); mesh->addSubModel (tv.vertices_, tv.triangles_);