Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37563771
en ru br
Репозитории ALT

Группа :: Графика
Пакет: meshlab

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: meshlab-2016.12-readheader.patch
Скачать


diff -up vcglib-1.0.1/wrap/io_trimesh/import_nvm.h.readheader vcglib-1.0.1/wrap/io_trimesh/import_nvm.h
--- vcglib-1.0.1/wrap/io_trimesh/import_nvm.h.readheader	2016-12-29 04:54:58.000000000 -0500
+++ vcglib-1.0.1/wrap/io_trimesh/import_nvm.h	2017-07-20 13:05:45.099059946 -0400
@@ -85,10 +85,10 @@ static bool ReadHeader(FILE *fp,unsigned
     return true;
 }
 
-static bool ReadHeader(const char * filename,unsigned int &/*num_cams*/, unsigned int &/*num_points*/){
+static bool ReadHeader(const char * filename,unsigned int &num_cams, unsigned int &/*num_points*/){
     FILE *fp = fopen(filename, "r");
     if(!fp) return false;
-    ReadHeader(fp);
+    ReadHeader(fp, num_cams);
     fclose(fp);
     return true;
 }
diff -up vcglib-1.0.1/wrap/io_trimesh/import_out.h.readheader vcglib-1.0.1/wrap/io_trimesh/import_out.h
--- vcglib-1.0.1/wrap/io_trimesh/import_out.h.readheader	2016-12-29 04:54:58.000000000 -0500
+++ vcglib-1.0.1/wrap/io_trimesh/import_out.h	2017-07-20 13:02:21.667838999 -0400
@@ -85,10 +85,10 @@ static bool ReadHeader(FILE *fp,unsigned
     return true;
 }
 
-static bool ReadHeader(const char * filename,unsigned int &/*num_cams*/, unsigned int &/*num_points*/){
+static bool ReadHeader(const char * filename,unsigned int &num_cams, unsigned int &num_points){
     FILE *fp = fopen(filename, "r");
     if(!fp) return false;
-    ReadHeader(fp);
+    ReadHeader(fp, num_cams, num_points);
     fclose(fp);
     return true;
 }
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin