From ecf8b7313ee3329df8c7548752a64ce5c23ef704 Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Mon, 14 May 2018 14:22:02 -0400 Subject: [PATCH] A couple more... --- vendor/kazhdan/PoissonRecon.h | 12 ++++++------ vendor/kazhdan/point_source/PointSource.h | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/vendor/kazhdan/PoissonRecon.h b/vendor/kazhdan/PoissonRecon.h index 06259b3968..1a307bf7cf 100644 --- a/vendor/kazhdan/PoissonRecon.h +++ b/vendor/kazhdan/PoissonRecon.h @@ -72,11 +72,11 @@ void DumpOutput2( std::vector< char* >& comments , const char* format , ... ); template XForm4x4 GetPointXForm(PointSource& source, Real scaleFactor) { - Point3D min , max; - source.boundingBox(min, max); - Point3D center = ( max + min ) / 2; - Real scale = std::max( max[0]-min[0], - std::max(max[1]-min[1], max[2]-min[2])); + Point3D minimum, maximum; + source.boundingBox(minimum, maximum); + Point3D center = (maximum + minimum) / 2; + Real scale = (std::max)(maximum[0]-minimum[0], + (std::max)(maximum[1]-minimum[1], maximum[2]-minimum[2])); scale *= scaleFactor; for( int i=0 ; i<3 ; i++ ) center[i] -= scale/2; @@ -479,7 +479,7 @@ void PoissonRecon::solve() solverInfo.verbose = m_opts.m_verbose; solverInfo.showResidual = m_opts.m_showResidual; solverInfo.lowResIterMultiplier = - std::max((Real)1.0, m_opts.m_lowResIterMult); + (std::max)((Real)1.0, m_opts.m_lowResIterMult); m_solution = m_tree.template solveSystem( FEMSystemFunctor(0, 1, 0), m_interp, m_constraints, diff --git a/vendor/kazhdan/point_source/PointSource.h b/vendor/kazhdan/point_source/PointSource.h index 8268ff1641..4d3c96dc91 100644 --- a/vendor/kazhdan/point_source/PointSource.h +++ b/vendor/kazhdan/point_source/PointSource.h @@ -41,12 +41,12 @@ class PointSource virtual void reset() = 0; virtual bool nextPoint(Point& point) = 0; - void boundingBox(Point3D& min, Point3D& max) + void boundingBox(Point3D& minimum, Point3D& maximum) { for (size_t i = 0; i < 3; ++i) { - min[i] = std::numeric_limits::max(); - max[i] = std::numeric_limits::lowest(); + minimum[i] = (std::numeric_limits::max)(); + maximum[i] = (std::numeric_limits::lowest)(); } Point p; @@ -54,8 +54,8 @@ class PointSource { for( int i=0 ; i<3 ; i++ ) { - min[i] = std::min(min[i], p.p[i]); - max[i] = std::max(max[i], p.p[i]); + minimum[i] = (std::min)(minimum[i], p.p[i]); + maximum[i] = (std::max)(maximum[i], p.p[i]); } } reset();