Browse Source

Revert "Optimising THREE.ExtrudeGeometry::addShape"

This reverts commit 285b51a1c1a029af6cd5294bffe13f857e6076a4.
Nicholas Kinsey 14 years ago
parent
commit
692d1edea6
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/extras/geometries/ExtrudeGeometry.js

+ 6 - 4
src/extras/geometries/ExtrudeGeometry.js

@@ -198,9 +198,11 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) {
 	var contour = vertices; // vertices has all points but contour has only points of circumference
 
 	for ( h = 0, hl = holes.length;  h < hl; h ++ ) {
-		
-		Array.prototype.push.apply( vertices, holes[ h ] );
-		
+
+		ahole = holes[ h ];
+
+		vertices = vertices.concat( ahole );
+
 	}
 
 
@@ -382,7 +384,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) {
 		}
 
 		holesMovements.push( oneHoleMovements );
-		Array.prototype.push.apply( verticesMovements, oneHoleMovements );
+		verticesMovements = verticesMovements.concat( oneHoleMovements );
 
 	}