Browse Source

comparison functor of priority queue is required to represent a strict ordering

Nico Schertler 6 years ago
parent
commit
9621a87edd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/knn.cpp

+ 1 - 1
include/igl/knn.cpp

@@ -68,7 +68,7 @@ namespace igl {
                                              CN.row(right-n),
                                              W(right-n));
         }
-        return leftdistance >= rightdistance;
+        return leftdistance > rightdistance;
       };
       
       std::priority_queue<IndexType, std::vector<IndexType>,