arpruss 8 年之前
父節點
當前提交
1246733823
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      split.html

+ 4 - 4
split.html

@@ -236,12 +236,12 @@ function splitMesh(triangles) {
             delete meshes[i].points;
         }
         
-        function compareByBounds(m,m) {
+        function compareByBounds(m,mm) {
             for (var i=0; i<6; i++) {
-                if (m.bounds[i] < m.bounds[i])
-                    return -1;
-                else if (m.bounds[i] < m.bounds[i])
+                if (m.bounds[i] < mm.bounds[i]) 
                     return -1;
+                else if (mm.bounds[i] < m.bounds[i])
+                    return 1;
             }
             return 0;
         }