Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37479061
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-stdmin.patch
Download


diff -up vcglib-1.0.1/vcg/complex/algorithms/create/resampler.h.stdmin vcglib-1.0.1/vcg/complex/algorithms/create/resampler.h
--- vcglib-1.0.1/vcg/complex/algorithms/create/resampler.h.stdmin	2017-07-20 11:11:49.636640240 -0400
+++ vcglib-1.0.1/vcg/complex/algorithms/create/resampler.h	2017-07-20 11:12:14.835048273 -0400
@@ -23,6 +23,7 @@
 #ifndef __VCG_MESH_RESAMPLER
 #define __VCG_MESH_RESAMPLER
 
+#include <algorithm>
 #include <vcg/complex/algorithms/update/normal.h>
 #include <vcg/complex/algorithms/update/flag.h>
 #include <vcg/complex/algorithms/update/bounding.h>
@@ -251,7 +252,7 @@ class Resampler : public BasicGrid<typen
         */
     void ComputeConsensus(int /*slice*/, field_value *slice_values)
     {
-      float max_dist = min(min(this->voxel[0],this->voxel[1]),this->voxel[2]);
+      float max_dist = std::min(std::min(this->voxel[0],this->voxel[1]),this->voxel[2]);
       int flippedCnt=0;
       int flippedTot=0;
       int flippedTimes=0;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin