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

Minor tabs to space tweaks.

Mr.doob 10 жил өмнө
parent
commit
20927e06fc

+ 12 - 12
examples/js/loaders/STLLoader.js

@@ -8,22 +8,22 @@
  * Supports both binary and ASCII encoded files, with automatic detection of type.
  *
  * Limitations:
- *	Binary decoding supports "Magics" color format (http://en.wikipedia.org/wiki/STL_(file_format)#Color_in_binary_STL).
- *	There is perhaps some question as to how valid it is to always assume little-endian-ness.
- *	ASCII decoding assumes file is UTF-8. Seems to work for the examples...
+ *  Binary decoding supports "Magics" color format (http://en.wikipedia.org/wiki/STL_(file_format)#Color_in_binary_STL).
+ *  There is perhaps some question as to how valid it is to always assume little-endian-ness.
+ *  ASCII decoding assumes file is UTF-8. Seems to work for the examples...
  *
  * Usage:
- *	var loader = new THREE.STLLoader();
- *	loader.load( './models/stl/slotted_disk.stl', function(geometry){
- *		scene.add( new THREE.Mesh( geometry ) );
- *	});
+ *  var loader = new THREE.STLLoader();
+ *  loader.load( './models/stl/slotted_disk.stl', function ( geometry ) {
+ *    scene.add( new THREE.Mesh( geometry ) );
+ *  });
  *
  * For binary STLs geometry might contain colors for vertices. To use it:
- *	... // use the same code to load STL as above
- *	if (geometry.hasColors) {
- *		material = new THREE.MeshPhongMaterial({ opacity: geometry.alpha, vertexColors: THREE.VertexColors });
- *	} else { .... }
- *	var mesh = new THREE.Mesh( geometry, material );
+ *  // use the same code to load STL as above
+ *  if (geometry.hasColors) {
+ *    material = new THREE.MeshPhongMaterial({ opacity: geometry.alpha, vertexColors: THREE.VertexColors });
+ *  } else { .... }
+ *  var mesh = new THREE.Mesh( geometry, material );
  */