浏览代码

Merge pull request #1106 from NSchertler/master

[knn] Fixed comparison functor in priority queue
Jérémie Dumas 6 年之前
父节点
当前提交
f530a2a645
共有 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),
                                              W(right-n));
         }
-        return leftdistance >= rightdistance;
+        return leftdistance > rightdistance;
       };
       
       std::priority_queue<IndexType, std::vector<IndexType>,