Skip to content

Commit

Permalink
Optimising THREE.ExtrudeGeometry::addShape
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Kinsey committed Sep 24, 2011
1 parent f13189b commit 285b51a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/extras/geometries/ExtrudeGeometry.js
Expand Up @@ -198,11 +198,9 @@ 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 ++ ) {

ahole = holes[ h ];

vertices = vertices.concat( ahole );


Array.prototype.push.apply( vertices, holes[ h ] );

}


Expand Down Expand Up @@ -384,7 +382,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) {
}

holesMovements.push( oneHoleMovements );
verticesMovements = verticesMovements.concat( oneHoleMovements );
Array.prototype.push.apply( verticesMovements, oneHoleMovements );

}

Expand Down

0 comments on commit 285b51a

Please sign in to comment.