فهرست منبع

Remove unecessary semicolon, and fix comma by semicolon in for loop assignement in MarchingCubes

Tristan Valcke 8 سال پیش
والد
کامیت
a85d628ff9
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      examples/js/MarchingCubes.js

+ 3 - 3
examples/js/MarchingCubes.js

@@ -412,7 +412,7 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 
 
 		}
 		}
 
 
-	};
+	}
 
 
 	this.begin = function () {
 	this.begin = function () {
 
 
@@ -493,8 +493,8 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 
 
 		for ( z = min_z; z < max_z; z ++ ) {
 		for ( z = min_z; z < max_z; z ++ ) {
 
 
-			z_offset = this.size2 * z,
-			fz = z / this.size - ballz,
+			z_offset = this.size2 * z;
+			fz = z / this.size - ballz;
 			fz2 = fz * fz;
 			fz2 = fz * fz;
 
 
 			for ( y = min_y; y < max_y; y ++ ) {
 			for ( y = min_y; y < max_y; y ++ ) {