Generalize mesh object to be the type of tiny_obj_loader.

This commit is contained in:
Tal Regev
2025-01-28 11:33:29 +02:00
parent 6a23841aad
commit fd568d68d4
2 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -61,7 +61,6 @@
#include "user/user_objects.h"
#include "user/user_resource.h"
#include "user/user_util.h"
#include <tiny_obj_loader.h>
extern "C" {
#include "qhull_ra.h"
@@ -394,7 +393,7 @@ void mjCMesh::CacheMesh(mjCCache* cache, const mjResource* resource,
+ (sizeof(int) * vertex_index_.size())
+ (sizeof(int) * normal_index_.size())
+ (sizeof(int) * texcoord_index_.size())
+ (sizeof(unsigned char) * num_face_vertices_.size());
+ (sizeof(face_vertices_type) * num_face_vertices_.size());
std::shared_ptr<const void> cached_data(mesh, +[](const void* data) {
const mjCMesh* mesh = static_cast<const mjCMesh*>(data);