2
0
Эх сурвалжийг харах

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

zz85 13 жил өмнө
parent
commit
30db3bb144

+ 3 - 0
examples/webgl_geometry_subdivison.html

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