2
0
Эх сурвалжийг харах

Fix #12327, QuickHull failing on coplanar sets of points

Robin Woodby 7 жил өмнө
parent
commit
af758f803f

+ 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 ++ ) {