浏览代码

fix for #1589 as THREE.PolyhedronGeometry do not use computeCentroids()

zz85 13 年之前
父节点
当前提交
30db3bb144
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      examples/webgl_geometry_subdivison.html

+ 3 - 0
examples/webgl_geometry_subdivison.html

@@ -224,6 +224,9 @@
 
 				// mergeVertices(); is run in case of duplicated vertices
 				smooth.mergeVertices();
+				smooth.computeCentroids();
+				// smooth.computeFaceNormals();
+				// smooth.computeVertexNormals();
 				modifier.modify( smooth );
 
 				updateInfo();