Explorar o código

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

zz85 %!s(int64=13) %!d(string=hai) anos
pai
achega
30db3bb144
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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();