Browse Source

Added computeCentroids() call to PolyhedronGeometry. Fixes #1589.

Mr.doob 13 năm trước cách đây
mục cha
commit
767a584df9
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/extras/geometries/PolyhedronGeometry.js

+ 2 - 0
src/extras/geometries/PolyhedronGeometry.js

@@ -130,6 +130,8 @@ THREE.PolyhedronGeometry = function ( vertices, faces, radius, detail ) {
 
 	}
 
+	this.computeCentroids();
+
 	this.boundingSphere = { radius: radius };
 
 };