瀏覽代碼

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

Nico Schertler 6 年之前
父節點
當前提交
9621a87edd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/knn.cpp

+ 1 - 1
include/igl/knn.cpp

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