Pārlūkot izejas kodu

Updated examples builds

Mr.doob 4 gadi atpakaļ
vecāks
revīzija
36b85d6e33
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 3 4
      examples/js/modifiers/SimplifyModifier.js

+ 3 - 4
examples/js/modifiers/SimplifyModifier.js

@@ -120,8 +120,8 @@
 			for ( let i = 0; i < vertices.length; i ++ ) {
 
 				const vertex = vertices[ i ].position;
-				position.push( vertex.x, vertex.y, vertex.z );
-				// cache final index to GREATLY speed up faces reconstruction
+				position.push( vertex.x, vertex.y, vertex.z ); // cache final index to GREATLY speed up faces reconstruction
+
 				vertices[ i ].id = i;
 
 			} //
@@ -442,8 +442,7 @@
 		constructor( v ) {
 
 			this.position = v;
-			
-			this.id = -1; // external use position in vertices list (for e.g. face generation)
+			this.id = - 1; // external use position in vertices list (for e.g. face generation)
 
 			this.faces = []; // faces vertex is connected