Last change
on this file since 28897 was 28897, checked in by davidb, 10 years ago |
GUI front-end to server base plus web page content
|
File size:
734 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * For testing whether the node modules for three and three-math work properly.
|
---|
3 | *
|
---|
4 | * To test the node modules:
|
---|
5 | * 1. First build them, but don't submit them to npm, see README.md for instructions
|
---|
6 | * 2. Run "node test.js"
|
---|
7 | * 3. You should see a list of all of the types exposed by the two THREE modules.
|
---|
8 | *
|
---|
9 | * @author bhouston / http://exocortex.com
|
---|
10 | */
|
---|
11 |
|
---|
12 | var threemath = function () {
|
---|
13 | var THREE = require( "three-math" );
|
---|
14 |
|
---|
15 | var a = new THREE.Vector3( 1, 1, 1 );
|
---|
16 | console.log( a );
|
---|
17 |
|
---|
18 | for( var i in THREE ) {
|
---|
19 | console.log( i );
|
---|
20 | }
|
---|
21 | };
|
---|
22 |
|
---|
23 | var three = function () {
|
---|
24 | var THREE = require( "three" );
|
---|
25 |
|
---|
26 | var a = new THREE.Vector3( 1, 1, 1 );
|
---|
27 | console.log( a );
|
---|
28 |
|
---|
29 | for( var i in THREE ) {
|
---|
30 | console.log( i );
|
---|
31 | }
|
---|
32 | };
|
---|
33 |
|
---|
34 | threemath();
|
---|
35 | three(); |
---|
Note:
See
TracBrowser
for help on using the repository browser.