Jaume Sanchez 7 лет назад
Родитель
Сommit
27f07c9867
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      examples/js/MarchingCubes.js

+ 8 - 0
examples/js/MarchingCubes.js

@@ -734,6 +734,14 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 		return geo;
 		return geo;
 
 
 	};
 	};
+	
+	function concatenate(resultConstructor, a1, a2, length) {
+		let totalLength = a1.length + length;
+		let result = new resultConstructor(totalLength);
+		result.set(a1, 0);
+		result.set(a2.slice(0,length), a1.length);
+		return result;
+	}
 
 
 	this.generateBufferGeometry = function() {
 	this.generateBufferGeometry = function() {
 
 

粤ICP备19079148号