Browse Source

Merge pull request #5607 from anvaka/patch-1

removed unused argument
Mr.doob 10 years ago
parent
commit
2759c12f3a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      examples/js/utils/GeometryUtils.js

+ 4 - 4
examples/js/utils/GeometryUtils.js

@@ -72,7 +72,7 @@ THREE.GeometryUtils = {
 	// Get random point in face (triangle)
 	// (uniform distribution)
 
-	randomPointInFace: function ( face, geometry, useCachedAreas ) {
+	randomPointInFace: function ( face, geometry ) {
 
 		var vA, vB, vC;
 
@@ -98,7 +98,7 @@ THREE.GeometryUtils = {
 			il = faces.length,
 			totalArea = 0,
 			cumulativeAreas = [],
-			vA, vB, vC, vD;
+			vA, vB, vC;
 
 		// precompute face areas
 
@@ -166,7 +166,7 @@ THREE.GeometryUtils = {
 
 			index = binarySearchIndices( r );
 
-			result[ i ] = THREE.GeometryUtils.randomPointInFace( faces[ index ], geometry, true );
+			result[ i ] = THREE.GeometryUtils.randomPointInFace( faces[ index ], geometry );
 
 			if ( ! stats[ index ] ) {
 
@@ -297,4 +297,4 @@ THREE.GeometryUtils = {
 
 	}
 
-};
+};