瀏覽代碼

Fix #12327, QuickHull failing on coplanar sets of points

Robin Woodby 7 年之前
父節點
當前提交
af758f803f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/QuickHull.js

+ 1 - 1
examples/js/QuickHull.js

@@ -470,7 +470,7 @@
 
 				// 3. The next vertex 'v3' is the one farthest to the plane 'v0', 'v1', 'v2'
 
-				maxDistance = 0;
+				maxDistance = -1;
 				plane.setFromCoplanarPoints( v0.point, v1.point, v2.point );
 
 				for ( i = 0, l = this.vertices.length; i < l; i ++ ) {