Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37402755
en ru br
ALT Linux repos
S:2021.10-alt2

Group :: Graphics
RPM: meshlab

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: meshlab-2016.12-readheader.patch
Download


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;
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin