From 5012edc1d4ef79b2bc7157474f2f35eec185b126 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Mon, 22 Nov 2021 11:17:05 +0100 Subject: [PATCH] change mesh model id to int for pymeshlab --- src/common/ml_document/mesh_model.cpp | 2 +- src/common/ml_document/mesh_model.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/ml_document/mesh_model.cpp b/src/common/ml_document/mesh_model.cpp index 2524576a1..6cd30208f 100644 --- a/src/common/ml_document/mesh_model.cpp +++ b/src/common/ml_document/mesh_model.cpp @@ -35,7 +35,7 @@ using namespace vcg; -MeshModel::MeshModel(unsigned int id, const QString& fullFileName, const QString& labelName) : +MeshModel::MeshModel(int id, const QString& fullFileName, const QString& labelName) : visible(true) { /*glw.m = &(cm);*/ diff --git a/src/common/ml_document/mesh_model.h b/src/common/ml_document/mesh_model.h index 920ae10b3..d5abb402c 100644 --- a/src/common/ml_document/mesh_model.h +++ b/src/common/ml_document/mesh_model.h @@ -121,14 +121,14 @@ public: MM_ALL = 0xffffffff }; - MeshModel(unsigned int id, const QString& fullFileName, const QString& labelName); + MeshModel(int id, const QString& fullFileName, const QString& labelName); ~MeshModel() { } void clear(); void updateBoxAndNormals(); // This is the STANDARD method that you should call after changing coords. - inline unsigned int id() const {return _id;} + inline int id() const {return _id;} int idInFile() const {return idInsideFile;} void setIdInFile(int id) {idInsideFile = id;} @@ -199,7 +199,7 @@ private: bool visible; // used in rendering; Needed for toggling on and off the meshes QString fullPathFileName; QString _label; - unsigned int _id; + int _id; bool modified; //this is an id used for meshes that are loaded from files