Browse Source

Removed unused object.boundRadius and object.boundRadiusScale.

Mr.doob 12 years ago
parent
commit
99358076dd

+ 1 - 1
examples/webgl_animation_skinning.html

@@ -170,7 +170,7 @@
 						buffalo.position.x = - ( gridx - 1 ) * sepx * 0.5 + x * sepx + Math.random() * 0.5 * sepx;
 						buffalo.position.x = - ( gridx - 1 ) * sepx * 0.5 + x * sepx + Math.random() * 0.5 * sepx;
 						buffalo.position.z = - ( gridz - 1 ) * sepz * 0.5 + z * sepz + Math.random() * 0.5 * sepz - 500;
 						buffalo.position.z = - ( gridz - 1 ) * sepz * 0.5 + z * sepz + Math.random() * 0.5 * sepz - 500;
 
 
-						buffalo.position.y = buffalo.boundRadius * 0.5;
+						buffalo.position.y = buffalo.geometry.boundingSphere.radius * 0.5;
 						buffalo.rotation.y = 0.2 - Math.random() * 0.4;
 						buffalo.rotation.y = 0.2 - Math.random() * 0.4;
 
 
 						scene.add( buffalo );
 						scene.add( buffalo );

+ 0 - 1
examples/webgl_ribbons.html

@@ -161,7 +161,6 @@
 					ribbon.matrix.multiplySelf( tmpRot );
 					ribbon.matrix.multiplySelf( tmpRot );
 
 
 					ribbon.matrix.scale( ribbon.scale );
 					ribbon.matrix.scale( ribbon.scale );
-					ribbon.boundRadiusScale = Math.max( ribbon.scale.x, Math.max( ribbon.scale.y, ribbon.scale.z ) );
 
 
 					ribbons.push( ribbon );
 					ribbons.push( ribbon );
 					scene.add( ribbon );
 					scene.add( ribbon );

+ 0 - 7
src/core/Object3D.js

@@ -35,9 +35,6 @@ THREE.Object3D = function () {
 	this.quaternion = new THREE.Quaternion();
 	this.quaternion = new THREE.Quaternion();
 	this.useQuaternion = false;
 	this.useQuaternion = false;
 
 
-	this.boundRadius = 0.0;
-	this.boundRadiusScale = 1.0;
-
 	this.visible = true;
 	this.visible = true;
 
 
 	this.castShadow = false;
 	this.castShadow = false;
@@ -270,7 +267,6 @@ THREE.Object3D.prototype = {
 		if ( this.scale.x !== 1 || this.scale.y !== 1 || this.scale.z !== 1 ) {
 		if ( this.scale.x !== 1 || this.scale.y !== 1 || this.scale.z !== 1 ) {
 
 
 			this.matrix.scale( this.scale );
 			this.matrix.scale( this.scale );
-			this.boundRadiusScale = Math.max( this.scale.x, Math.max( this.scale.y, this.scale.z ) );
 
 
 		}
 		}
 
 
@@ -337,9 +333,6 @@ THREE.Object3D.prototype = {
 		object.quaternion.copy( this.quaternion );
 		object.quaternion.copy( this.quaternion );
 		object.useQuaternion = this.useQuaternion;
 		object.useQuaternion = this.useQuaternion;
 
 
-		object.boundRadius = this.boundRadius;
-		object.boundRadiusScale = this.boundRadiusScale;
-
 		object.visible = this.visible;
 		object.visible = this.visible;
 
 
 		object.castShadow = this.castShadow;
 		object.castShadow = this.castShadow;

+ 0 - 3
src/objects/Mesh.js

@@ -21,9 +21,6 @@ THREE.Mesh = function ( geometry, material ) {
 
 
 		}
 		}
 
 
-		this.boundRadius = geometry.boundingSphere.radius;
-
-
 		// setup morph targets
 		// setup morph targets
 
 
 		if ( this.geometry.morphTargets.length ) {
 		if ( this.geometry.morphTargets.length ) {

+ 0 - 2
src/objects/ParticleSystem.js

@@ -21,8 +21,6 @@ THREE.ParticleSystem = function ( geometry, material ) {
 
 
 		}
 		}
 
 
-		this.boundRadius = geometry.boundingSphere.radius;
-
 	}
 	}
 
 
 	this.frustumCulled = false;
 	this.frustumCulled = false;

+ 0 - 1
src/objects/Sprite.js

@@ -30,7 +30,6 @@ THREE.Sprite.prototype.updateMatrix = function () {
 	if ( this.scale.x !== 1 || this.scale.y !== 1 ) {
 	if ( this.scale.x !== 1 || this.scale.y !== 1 ) {
 
 
 		this.matrix.scale( this.scale );
 		this.matrix.scale( this.scale );
-		this.boundRadiusScale = Math.max( this.scale.x, this.scale.y );
 
 
 	}
 	}