فهرست منبع

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();