2
0
Mr.doob 3 жил өмнө
parent
commit
9a514bf571

+ 13 - 9
build/three.cjs

@@ -3631,6 +3631,13 @@ class Vector3 {
 		return this.fromArray(m.elements, index * 3);
 		return this.fromArray(m.elements, index * 3);
 	}
 	}
 
 
+	setFromEuler(e) {
+		this.x = e._x;
+		this.y = e._y;
+		this.z = e._z;
+		return this;
+	}
+
 	equals(v) {
 	equals(v) {
 		return v.x === this.x && v.y === this.y && v.z === this.z;
 		return v.x === this.x && v.y === this.y && v.z === this.z;
 	}
 	}
@@ -5571,14 +5578,6 @@ class Euler {
 		return array;
 		return array;
 	}
 	}
 
 
-	toVector3(optionalResult) {
-		if (optionalResult) {
-			return optionalResult.set(this._x, this._y, this._z);
-		} else {
-			return new Vector3(this._x, this._y, this._z);
-		}
-	}
-
 	_onChange(callback) {
 	_onChange(callback) {
 		this._onChangeCallback = callback;
 		this._onChangeCallback = callback;
 		return this;
 		return this;
@@ -34201,7 +34200,7 @@ class PointLightHelper extends Mesh {
 		this.update();
 		this.update();
 		/*
 		/*
 		// TODO: delete this comment?
 		// TODO: delete this comment?
-		const distanceGeometry = new THREE.IcosahedronBufferGeometry( 1, 2 );
+		const distanceGeometry = new THREE.IcosahedronGeometry( 1, 2 );
 		const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
 		const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
 		this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
 		this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
 		this.lightDistance = new THREE.Mesh( distanceGeometry, distanceMaterial );
 		this.lightDistance = new THREE.Mesh( distanceGeometry, distanceMaterial );
@@ -35343,6 +35342,11 @@ Box3.prototype.size = function (optionalTarget) {
 }; //
 }; //
 
 
 
 
+Euler.prototype.toVector3 = function () {
+	console.error('THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead');
+}; //
+
+
 Sphere.prototype.empty = function () {
 Sphere.prototype.empty = function () {
 	console.warn('THREE.Sphere: .empty() has been renamed to .isEmpty().');
 	console.warn('THREE.Sphere: .empty() has been renamed to .isEmpty().');
 	return this.isEmpty();
 	return this.isEmpty();

+ 13 - 9
build/three.js

@@ -3633,6 +3633,13 @@
 			return this.fromArray(m.elements, index * 3);
 			return this.fromArray(m.elements, index * 3);
 		}
 		}
 
 
+		setFromEuler(e) {
+			this.x = e._x;
+			this.y = e._y;
+			this.z = e._z;
+			return this;
+		}
+
 		equals(v) {
 		equals(v) {
 			return v.x === this.x && v.y === this.y && v.z === this.z;
 			return v.x === this.x && v.y === this.y && v.z === this.z;
 		}
 		}
@@ -5573,14 +5580,6 @@
 			return array;
 			return array;
 		}
 		}
 
 
-		toVector3(optionalResult) {
-			if (optionalResult) {
-				return optionalResult.set(this._x, this._y, this._z);
-			} else {
-				return new Vector3(this._x, this._y, this._z);
-			}
-		}
-
 		_onChange(callback) {
 		_onChange(callback) {
 			this._onChangeCallback = callback;
 			this._onChangeCallback = callback;
 			return this;
 			return this;
@@ -34203,7 +34202,7 @@
 			this.update();
 			this.update();
 			/*
 			/*
 			// TODO: delete this comment?
 			// TODO: delete this comment?
-			const distanceGeometry = new THREE.IcosahedronBufferGeometry( 1, 2 );
+			const distanceGeometry = new THREE.IcosahedronGeometry( 1, 2 );
 			const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
 			const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
 			this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
 			this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
 			this.lightDistance = new THREE.Mesh( distanceGeometry, distanceMaterial );
 			this.lightDistance = new THREE.Mesh( distanceGeometry, distanceMaterial );
@@ -35345,6 +35344,11 @@
 	}; //
 	}; //
 
 
 
 
+	Euler.prototype.toVector3 = function () {
+		console.error('THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead');
+	}; //
+
+
 	Sphere.prototype.empty = function () {
 	Sphere.prototype.empty = function () {
 		console.warn('THREE.Sphere: .empty() has been renamed to .isEmpty().');
 		console.warn('THREE.Sphere: .empty() has been renamed to .isEmpty().');
 		return this.isEmpty();
 		return this.isEmpty();

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
build/three.min.js


+ 20 - 15
build/three.module.js

@@ -4674,6 +4674,16 @@ class Vector3 {
 
 
 	}
 	}
 
 
+	setFromEuler( e ) {
+
+		this.x = e._x;
+		this.y = e._y;
+		this.z = e._z;
+
+		return this;
+
+	}
+
 	equals( v ) {
 	equals( v ) {
 
 
 		return ( ( v.x === this.x ) && ( v.y === this.y ) && ( v.z === this.z ) );
 		return ( ( v.x === this.x ) && ( v.y === this.y ) && ( v.z === this.z ) );
@@ -7170,20 +7180,6 @@ class Euler {
 
 
 	}
 	}
 
 
-	toVector3( optionalResult ) {
-
-		if ( optionalResult ) {
-
-			return optionalResult.set( this._x, this._y, this._z );
-
-		} else {
-
-			return new Vector3( this._x, this._y, this._z );
-
-		}
-
-	}
-
 	_onChange( callback ) {
 	_onChange( callback ) {
 
 
 		this._onChangeCallback = callback;
 		this._onChangeCallback = callback;
@@ -47475,7 +47471,7 @@ class PointLightHelper extends Mesh {
 
 
 		/*
 		/*
 	// TODO: delete this comment?
 	// TODO: delete this comment?
-	const distanceGeometry = new THREE.IcosahedronBufferGeometry( 1, 2 );
+	const distanceGeometry = new THREE.IcosahedronGeometry( 1, 2 );
 	const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
 	const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
 
 
 	this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
 	this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
@@ -49023,6 +49019,15 @@ Box3.prototype.size = function ( optionalTarget ) {
 
 
 };
 };
 
 
+//
+
+Euler.prototype.toVector3 = function () {
+
+	console.error( 'THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead' );
+
+};
+
+
 //
 //
 
 
 Sphere.prototype.empty = function () {
 Sphere.prototype.empty = function () {

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно