()
| 493 | scene.add(createScale()); |
| 494 | |
| 495 | function createDirectionLabels() { |
| 496 | [ |
| 497 | { t: '前', p: new THREE.Vector3(0, 0, 5), c: '#00ffff' }, |
| 498 | { t: '后', p: new THREE.Vector3(0, 0,-5), c: '#00ffff' }, |
| 499 | { t: '左', p: new THREE.Vector3(-5,0, 0), c: '#ffff00' }, |
| 500 | { t: '右', p: new THREE.Vector3( 5,0, 0), c: '#ffff00' }, |
| 501 | { t: '上', p: new THREE.Vector3(0, 5, 0), c: '#ff00ff' }, |
| 502 | { t: '下', p: new THREE.Vector3(0,-5, 0), c: '#ff00ff' }, |
| 503 | ].forEach(d => scene.add(createAxisLabel(d.t, d.p, d.c))); |
| 504 | } |
| 505 | createDirectionLabels(); |
| 506 | |
| 507 | camera.position.set(4,4,6); |
no test coverage detected