Selaa lähdekoodia

Added placeholders for Object3D and Geometry clone().

Mr.doob 13 vuotta sitten
vanhempi
commit
b40e238550
2 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. 7 1
      src/core/Geometry.js
  2. 6 0
      src/core/Object3D.js

+ 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
+
 	}
 
 };