Jelajahi Sumber

Helpers clean up.

Mr.doob 8 tahun lalu
induk
melakukan
dcfa48a235

+ 5 - 5
src/helpers/AxisHelper.js

@@ -1,14 +1,14 @@
+/**
+ * @author sroucheray / http://sroucheray.org/
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { LineSegments } from '../objects/LineSegments';
 import { VertexColors } from '../constants';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 
-/**
- * @author sroucheray / http://sroucheray.org/
- * @author mrdoob / http://mrdoob.com/
- */
-
 function AxisHelper( size ) {
 
 	size = size || 1;

+ 4 - 5
src/helpers/Box3Helper.js

@@ -1,3 +1,7 @@
+/**
+ * @author WestLangley / http://github.com/WestLangley
+ */
+
 import { Box3 } from '../math/Box3';
 import { LineSegments } from '../objects/LineSegments';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
@@ -5,11 +9,6 @@ import { BufferAttribute } from '../core/BufferAttribute';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 
-/**
-  * @author WestLangley / http://github.com/WestLangley
-  *
- */
-
 function Box3Helper( box, hex ) {
 
 	this.type = 'Box3Helper';

+ 5 - 5
src/helpers/BoxHelper.js

@@ -1,14 +1,14 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ * @author Mugen87 / http://github.com/Mugen87
+ */
+
 import { Box3 } from '../math/Box3';
 import { LineSegments } from '../objects/LineSegments';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 import { BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 
-/**
- * @author mrdoob / http://mrdoob.com/
- * @author Mugen87 / http://github.com/Mugen87
- */
-
 function BoxHelper( object, color ) {
 
 	this.object = object;

+ 9 - 9
src/helpers/CameraHelper.js

@@ -1,12 +1,3 @@
-import { Camera } from '../cameras/Camera';
-import { Vector3 } from '../math/Vector3';
-import { LineSegments } from '../objects/LineSegments';
-import { Color } from '../math/Color';
-import { FaceColors } from '../constants';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-
 /**
  * @author alteredq / http://alteredqualia.com/
  * @author Mugen87 / https://github.com/Mugen87
@@ -17,6 +8,15 @@ import { Float32BufferAttribute } from '../core/BufferAttribute';
  *		http://evanw.github.com/lightgl.js/tests/shadowmap.html
  */
 
+import { Camera } from '../cameras/Camera';
+import { Vector3 } from '../math/Vector3';
+import { LineSegments } from '../objects/LineSegments';
+import { Color } from '../math/Color';
+import { FaceColors } from '../constants';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial';
+import { BufferGeometry } from '../core/BufferGeometry';
+import { Float32BufferAttribute } from '../core/BufferAttribute';
+
 function CameraHelper( camera ) {
 
 	var geometry = new BufferGeometry();

+ 6 - 6
src/helpers/DirectionalLightHelper.js

@@ -1,3 +1,9 @@
+/**
+ * @author alteredq / http://alteredqualia.com/
+ * @author mrdoob / http://mrdoob.com/
+ * @author WestLangley / http://github.com/WestLangley
+ */
+
 import { Vector3 } from '../math/Vector3';
 import { Object3D } from '../core/Object3D';
 import { Line } from '../objects/Line';
@@ -5,12 +11,6 @@ import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 
-/**
- * @author alteredq / http://alteredqualia.com/
- * @author mrdoob / http://mrdoob.com/
- * @author WestLangley / http://github.com/WestLangley
- */
-
 function DirectionalLightHelper( light, size ) {
 
 	Object3D.call( this );

+ 5 - 5
src/helpers/FaceNormalsHelper.js

@@ -1,3 +1,8 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ * @author WestLangley / http://github.com/WestLangley
+ */
+
 import { Matrix3 } from '../math/Matrix3';
 import { Vector3 } from '../math/Vector3';
 import { LineSegments } from '../objects/LineSegments';
@@ -5,11 +10,6 @@ import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 
-/**
- * @author mrdoob / http://mrdoob.com/
- * @author WestLangley / http://github.com/WestLangley
-*/
-
 function FaceNormalsHelper( object, size, hex, linewidth ) {
 
 	// FaceNormalsHelper only supports THREE.Geometry

+ 4 - 4
src/helpers/GridHelper.js

@@ -1,3 +1,7 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { LineSegments } from '../objects/LineSegments';
 import { VertexColors } from '../constants';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
@@ -5,10 +9,6 @@ import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 import { Color } from '../math/Color';
 
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 function GridHelper( size, divisions, color1, color2 ) {
 
 	size = size || 10;

+ 6 - 6
src/helpers/HemisphereLightHelper.js

@@ -1,3 +1,9 @@
+/**
+ * @author alteredq / http://alteredqualia.com/
+ * @author mrdoob / http://mrdoob.com/
+ * @author Mugen87 / https://github.com/Mugen87
+ */
+
 import { Vector3 } from '../math/Vector3';
 import { Color } from '../math/Color';
 import { Object3D } from '../core/Object3D';
@@ -7,12 +13,6 @@ import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
 import { OctahedronBufferGeometry } from '../geometries/OctahedronGeometry';
 import { BufferAttribute } from '../core/BufferAttribute';
 
-/**
- * @author alteredq / http://alteredqualia.com/
- * @author mrdoob / http://mrdoob.com/
- * @author Mugen87 / https://github.com/Mugen87
- */
-
 function HemisphereLightHelper( light, size ) {
 
 	Object3D.call( this );

+ 4 - 5
src/helpers/PlaneHelper.js

@@ -1,14 +1,13 @@
+/**
+ * @author WestLangley / http://github.com/WestLangley
+ */
+ 
 import { Box3 } from '../math/Box3';
 import { Line } from '../objects/Line';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 
-/**
-  * @author WestLangley / http://github.com/WestLangley
-  *
- */
-
 function PlaneHelper( plane, size, hex ) {
 
 	this.type = 'PlaneHelper';

+ 4 - 4
src/helpers/PointLightHelper.js

@@ -1,12 +1,12 @@
-import { Mesh } from '../objects/Mesh';
-import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
-import { SphereBufferGeometry } from '../geometries/SphereGeometry';
-
 /**
  * @author alteredq / http://alteredqualia.com/
  * @author mrdoob / http://mrdoob.com/
  */
 
+import { Mesh } from '../objects/Mesh';
+import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
+import { SphereBufferGeometry } from '../geometries/SphereGeometry';
+
 function PointLightHelper( light, sphereSize ) {
 
 	this.light = light;

+ 6 - 6
src/helpers/PolarGridHelper.js

@@ -1,3 +1,9 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ * @author Mugen87 / http://github.com/Mugen87
+ * @author Hectate / http://www.github.com/Hectate
+ */
+
 import { LineSegments } from '../objects/LineSegments';
 import { VertexColors } from '../constants';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
@@ -5,12 +11,6 @@ import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 import { Color } from '../math/Color';
 
-/**
- * @author mrdoob / http://mrdoob.com/
- * @author Mugen87 / http://github.com/Mugen87
- * @author Hectate / http://www.github.com/Hectate
- */
-
 function PolarGridHelper( radius, radials, circles, divisions, color1, color2 ) {
 
 	radius = radius || 10;

+ 8 - 8
src/helpers/SkeletonHelper.js

@@ -1,3 +1,11 @@
+/**
+ * @author Sean Griffin / http://twitter.com/sgrif
+ * @author Michael Guerrero / http://realitymeltdown.com
+ * @author mrdoob / http://mrdoob.com/
+ * @author ikerr / http://verold.com
+ * @author Mugen87 / https://github.com/Mugen87
+ */
+
 import { LineSegments } from '../objects/LineSegments';
 import { Matrix4 } from '../math/Matrix4';
 import { VertexColors } from '../constants';
@@ -7,14 +15,6 @@ import { Vector3 } from '../math/Vector3';
 import { BufferGeometry } from '../core/BufferGeometry';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 
-/**
- * @author Sean Griffin / http://twitter.com/sgrif
- * @author Michael Guerrero / http://realitymeltdown.com
- * @author mrdoob / http://mrdoob.com/
- * @author ikerr / http://verold.com
- * @author Mugen87 / https://github.com/Mugen87
- */
-
 function getBoneList( object ) {
 
 	var boneList = [];

+ 6 - 6
src/helpers/SpotLightHelper.js

@@ -1,3 +1,9 @@
+/**
+ * @author alteredq / http://alteredqualia.com/
+ * @author mrdoob / http://mrdoob.com/
+ * @author WestLangley / http://github.com/WestLangley
+ */
+
 import { Vector3 } from '../math/Vector3';
 import { Object3D } from '../core/Object3D';
 import { LineSegments } from '../objects/LineSegments';
@@ -5,12 +11,6 @@ import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 
-/**
- * @author alteredq / http://alteredqualia.com/
- * @author mrdoob / http://mrdoob.com/
- * @author WestLangley / http://github.com/WestLangley
-*/
-
 function SpotLightHelper( light ) {
 
 	Object3D.call( this );

+ 5 - 5
src/helpers/VertexNormalsHelper.js

@@ -1,3 +1,8 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ * @author WestLangley / http://github.com/WestLangley
+ */
+
 import { Matrix3 } from '../math/Matrix3';
 import { Vector3 } from '../math/Vector3';
 import { LineSegments } from '../objects/LineSegments';
@@ -5,11 +10,6 @@ import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 
-/**
- * @author mrdoob / http://mrdoob.com/
- * @author WestLangley / http://github.com/WestLangley
-*/
-
 function VertexNormalsHelper( object, size, hex, linewidth ) {
 
 	this.object = object;