Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RollerCoasterGeometry( curve, divisions ) { | |
THREE.BufferGeometry.call( this ); | |
var vertices = []; | |
var normals = []; | |
var colors = []; | |
//๋ ์ผ ๊ทธ๋ฆด ๋ ํ์ํ ์ | |
var color1 = [ 1, 1, 1 ]; //ํ์์ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rollercoastergeometry ์์ | |
var sides = 5; | |
var step1 = [ ]; | |
for ( var i = 0; i < sides; i ++ ) { | |
var angle = ( i / sides ) * PI2; //angle์ด 72, 144, 216, 288, 360 ๋ค์ฏ ๊ฐ์ง๊ฐ ๋จ | |
step1.push( new THREE.Vector3(0 , Math.sin( angle ) * 0.02, Math.cos( angle ) * 0.02 ) ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author mrdoob / http://mrdoob.com/ | |
*/ | |
function RollerCoasterGeometry( curve, divisions ) { | |
THREE.BufferGeometry.call( this ); | |
var vertices = []; | |
var normals = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char* argv[]) | |
{ | |
int sum = 0; | |
for( int i = 1 ; i <= 100 ; i ++ ){ | |
sum = sum + i; | |
} | |
printf("1 to 100 sum = %d\n"); | |
} |