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

Added placeholders for Object3D and Geometry clone().

Mr.doob 13 жил өмнө
parent
commit
b40e238550

+ 7 - 1
src/core/Geometry.js

@@ -567,7 +567,7 @@ THREE.Geometry.prototype = {
 	 * and faces' vertices are updated.
 	 */
 
-	mergeVertices: function() {
+	mergeVertices: function () {
 
 		var verticesMap = {}; // Hashmap for looking up vertice by position coordinates (and making sure they are unique)
 		var unique = [], changes = [];
@@ -656,6 +656,12 @@ THREE.Geometry.prototype = {
 		this.vertices = unique;
 		return diff;
 
+	},
+
+	clone: function () {
+
+		// TODO
+
 	}
 
 };

+ 6 - 0
src/core/Object3D.js

@@ -273,6 +273,12 @@ THREE.Object3D.prototype = {
 
 		return this.matrixWorld.multiplyVector3( vector );
 
+	},
+
+	clone: function () {
+
+		// TODO
+
 	}
 
 };