Browse Source

Merge pull request #8213 from Mugen87/dev

BoxGeometry: Merge redundant vertices
Mr.doob 9 years ago
parent
commit
355daf9493
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/extras/geometries/BoxGeometry.js

+ 1 - 0
src/extras/geometries/BoxGeometry.js

@@ -20,6 +20,7 @@ THREE.BoxGeometry = function ( width, height, depth, widthSegments, heightSegmen
 
 	this.fromBufferGeometry( new THREE.BoxBufferGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) );
 
+	this.mergeVertices();
 };
 
 THREE.BoxGeometry.prototype = Object.create( THREE.Geometry.prototype );