Ver código fonte

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

zz85 13 anos atrás
pai
commit
30db3bb144
1 arquivos alterados com 3 adições e 0 exclusões
  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();