Browse Source

Fixed linter errors

Lewy Blue 6 years ago
parent
commit
8958274fdc
2 changed files with 18 additions and 3 deletions
  1. 6 3
      examples/css3d_molecules.html
  2. 12 0
      examples/raytracing_sandbox.html

+ 6 - 3
examples/css3d_molecules.html

@@ -208,17 +208,20 @@
 
 
 				b_a.addEventListener( 'click', function () {
 				b_a.addEventListener( 'click', function () {
 
 
-					visualizationType = 0; showAtoms();
+					visualizationType = 0;
+					showAtoms();
 
 
 				} );
 				} );
 				b_b.addEventListener( 'click', function () {
 				b_b.addEventListener( 'click', function () {
 
 
-					visualizationType = 1; showBonds();
+					visualizationType = 1;
+					showBonds();
 
 
 				} );
 				} );
 				b_ab.addEventListener( 'click', function () {
 				b_ab.addEventListener( 'click', function () {
 
 
-					visualizationType = 2; showAtomsBonds();
+					visualizationType = 2;
+					showAtomsBonds();
 
 
 				} );
 				} );
 
 

+ 12 - 0
examples/raytracing_sandbox.html

@@ -289,6 +289,18 @@
 
 
 			}
 			}
 
 
+			function rearrange() {
+
+				group.children.forEach( function ( o ) {
+
+ 					o.position.y += ( Math.random() - 0.5 ) * 100;
+					o.position.x += ( Math.random() - 0.5 ) * 400;
+					o.position.z += ( Math.random() - 0.5 ) * 400;
+
+				} );
+
+ 			}
+
 			function render() {
 			function render() {
 
 
 				renderer.render( scene, camera );
 				renderer.render( scene, camera );