Browse Source

MeshTools: got rid of <limits> dependency in removeDuplicates().

pull/190/head
Vladimír Vondruš 9 years ago
parent
commit
aaa38d3570
  1. 2
      src/Magnum/MeshTools/RemoveDuplicates.h

2
src/Magnum/MeshTools/RemoveDuplicates.h

@ -99,7 +99,7 @@ template<class Vector> std::vector<UnsignedInt> removeDuplicates(std::vector<Vec
/* Make epsilon so large that std::size_t can index all vectors inside the
bounds. */
epsilon = Math::max(epsilon, typename Vector::Type((max-min).max()/std::numeric_limits<std::size_t>::max()));
epsilon = Math::max(epsilon, typename Vector::Type((max-min).max()/~std::size_t{}));
/* Resulting index array */
std::vector<UnsignedInt> resultIndices(data.size());

Loading…
Cancel
Save