From 8f6e26f281f2433180e74074b36b4e1973d348e0 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Fri, 16 Mar 2007 10:51:46 +0000 Subject: [PATCH] Substituted std::max with vcg::math::Max --- vcg/complex/local_optimization/tri_edge_flip.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/complex/local_optimization/tri_edge_flip.h b/vcg/complex/local_optimization/tri_edge_flip.h index 9312b52a..cf3e804f 100644 --- a/vcg/complex/local_optimization/tri_edge_flip.h +++ b/vcg/complex/local_optimization/tri_edge_flip.h @@ -142,8 +142,8 @@ namespace vcg bool IsUpToDate() { int MostRecentVertexMark = _pos.V(0)->IMark(); - MostRecentVertexMark = std::max(MostRecentVertexMark, _pos.V(1)->IMark()); - MostRecentVertexMark = std::max(MostRecentVertexMark, _pos.V(2)->IMark()); + MostRecentVertexMark = vcg::math::Max(MostRecentVertexMark, _pos.V(1)->IMark()); + MostRecentVertexMark = vcg::math::Max(MostRecentVertexMark, _pos.V(2)->IMark()); return ( _localMark >= MostRecentVertexMark ); }; @@ -195,7 +195,7 @@ namespace vcg // higher the quality better the triangle. // swaps that improve the worst quality more are performed before // (e.g. they have an higher priority) - _priority = std::min(QaAfter,QbAfter) - std::min(Qa,Qb) ; + _priority = vcg::math::Max(QaAfter,QbAfter) - vcg::math::Min(Qa,Qb) ; _priority *=-1; return _priority; };