Revert "Optimising THREE.ExtrudeGeometry::addShape"

This reverts commit 285b51a1c1.
This commit is contained in:
Nicholas Kinsey
2011-09-24 16:07:32 +10:00
parent ce2e019e2d
commit 692d1edea6
+6 -4
View File
@@ -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 );
}