Răsfoiți Sursa

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

zz85 13 ani în urmă
părinte
comite
30db3bb144
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  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();