This commit is contained in:
monsterkodi 2016-08-20 20:03:01 +02:00
parent bd6e7823e4
commit 109fa0185a
4 changed files with 448 additions and 409 deletions

View File

@ -15,12 +15,11 @@ class Gear extends Valve
constructor: (@face) ->
geom = Geom.gear()
@mesh = new THREE.Mesh geom, Cage.cageMat
@mesh = new THREE.Mesh Geom.gear(), Cage.cageMat
@mesh.add new THREE.Mesh Geom.valve(), Cage.rasterMat
@mesh.receiveShadow = true
super @face
# log "gear.constructor #{@face}"
@updateMesh()
getNeighborDirections: (face) ->

View File

@ -10,24 +10,30 @@ Vector = require './lib/vector'
class Geom
@gear: ->
quads = 48 + 16 * 3
quads += 4 + 5*8 # valve
triangles = quads * 2
positions = new Float32Array triangles * 9
normals = new Float32Array triangles * 9
@valve: ->
quads = 6+5*8 # valve
triangles = quads*2
positions = new Float32Array triangles*9
normals = new Float32Array triangles*9
pi = -1
pi = @quadList positions, normals, pi, @valveQuads
pi = @quadStrip positions, normals, pi, @valveQuadStrip1
pi = @quadStrip positions, normals, pi, @valveQuadStrip2
pi = @quadStrip positions, normals, pi, @valveQuadStrip3
pi = @quadStrip positions, normals, pi, @valveQuadStrip4
pi = @quadStrip positions, normals, pi, @valveQuadStrip5
geom = new THREE.BufferGeometry
geom.addAttribute 'position', new THREE.BufferAttribute positions, 3
geom.addAttribute 'normal', new THREE.BufferAttribute normals, 3
geom
@gear: ->
quads = 48+16*3 # gear
triangles = quads*2
positions = new Float32Array triangles*9
normals = new Float32Array triangles*9
pi = -1
pi = @quadList positions, normals, pi, @gearQuads
pi = @quadStrip positions, normals, pi, @gearQuadStrip1
pi = @quadStrip positions, normals, pi, @gearQuadStrip2
@ -35,7 +41,7 @@ class Geom
geom = new THREE.BufferGeometry
geom.addAttribute 'position', new THREE.BufferAttribute positions, 3
geom.addAttribute 'normal', new THREE.BufferAttribute normals, 3
geom.addAttribute 'normal', new THREE.BufferAttribute normals, 3
geom.translate 0,0,0.4
geom
@ -62,435 +68,449 @@ class Geom
pi
@valveQuads = [
0, 0, 1, 0.100, 0, 0.500,
0, 0, 1, 0.071, 0.071, 0.500,
0, 0, 1, 0, 0.100, 0.500,
0, 0, 1, 0.071, -0.071, 0.500,
0, 0, 1,-0.100, 0, 0.500,
0, 0, 1,-0.071, -0.071, 0.500,
0, 0, 1, 0, -0.100, 0.500,
0, 0, 1,-0.071, 0.071, 0.500,
0, 0, -1, 0.100, 0, -0.500,
0, 0, 1, 0.100, 0, 0.500,
0, 0, 1, 0.071, 0.071, 0.500,
0, 0, 1, 0, 0.100, 0.500,
0, 0, 1, 0.071, -0.071, 0.500,
0, 0, 1,-0.100, 0, 0.500,
0, 0, 1,-0.071, -0.071, 0.500,
0, 0, 1, 0, -0.100, 0.500,
0, 0, 1,-0.071, 0.071, 0.500,
0, 0, 1, 0.071, -0.071, 0.500,
0, 0, 1, 0, 0.100, 0.500,
0, 0, 1,-0.071, 0.071, 0.500,
0, 0, 1, 0, -0.100, 0.500,
0, 0, -1, 0.100, 0, -0.500,
0, 0, -1, 0.071, -0.071, -0.500,
0, 0, -1, 0, -0.100, -0.500,
0, 0, -1, 0.071, 0.071, -0.500,
0, 0, -1,-0.100, 0, -0.500,
0, 0, -1,-0.071, 0.071, -0.500,
0, 0, -1, 0, 0.100, -0.500,
0, 0, -1,-0.071, -0.071, -0.500]
0, 0, -1, 0, -0.100, -0.500,
0, 0, -1, 0.071, 0.071, -0.500,
0, 0, -1,-0.100, 0, -0.500,
0, 0, -1,-0.071, 0.071, -0.500,
0, 0, -1, 0, 0.100, -0.500,
0, 0, -1,-0.071, -0.071, -0.500,
0, 0, -1, 0.071, 0.071, -0.500,
0, 0, -1, 0, -0.100, -0.500,
0, 0, -1,-0.071, -0.071, -0.500,
0, 0, -1, 0, 0.100, -0.500,
]
@valveQuadStrip1 = [
0.673, 0.673, 0.308, 0.071, 0.071, -0.346,
0.673, 0.673, 0.308, 0.042, 0.042, -0.220,
0.951, -0.000, 0.308, 0.100, 0.000, -0.346,
0.951, -0.000, 0.308, 0.059, 0.000, -0.220,
0.673, -0.673, 0.308, 0.071, -0.071, -0.346,
0.673, -0.673, 0.308, 0.042, -0.042, -0.220,
-0.000, -0.951, 0.308, 0.000, -0.100, -0.346,
-0.000, -0.951, 0.308, 0.000, -0.059, -0.220,
-0.673, -0.673, 0.308, -0.071, -0.071, -0.346,
-0.673, -0.673, 0.308, -0.042, -0.042, -0.220,
-0.951, -0.000, 0.308, -0.100, 0.000, -0.346,
-0.951, -0.000, 0.308, -0.059, 0.000, -0.220,
-0.673, 0.673, 0.308, -0.071, 0.071, -0.346,
-0.673, 0.673, 0.308, -0.042, 0.042, -0.220,
-0.000, 0.951, 0.308, -0.000, 0.100, -0.346,
-0.000, 0.951, 0.308, -0.000, 0.059, -0.220,
0.673, 0.673, 0.308, 0.071, 0.071, -0.346,
0.673, 0.673, 0.308, 0.042, 0.042, -0.220,
0.951, -0.000, 0.308, 0.100, 0.000, -0.346,
0.951, -0.000, 0.308, 0.059, 0.000, -0.220]
0.673, 0.673, 0.308, 0.071, 0.071, -0.346,
0.673, 0.673, 0.308, 0.042, 0.042, -0.220,
0.951, -0.000, 0.308, 0.100, 0.000, -0.346,
0.951, -0.000, 0.308, 0.059, 0.000, -0.220,
0.673, -0.673, 0.308, 0.071, -0.071, -0.346,
0.673, -0.673, 0.308, 0.042, -0.042, -0.220,
-0.000, -0.951, 0.308, 0.000, -0.100, -0.346,
-0.000, -0.951, 0.308, 0.000, -0.059, -0.220,
-0.673, -0.673, 0.308, -0.071, -0.071, -0.346,
-0.673, -0.673, 0.308, -0.042, -0.042, -0.220,
-0.951, -0.000, 0.308, -0.100, 0.000, -0.346,
-0.951, -0.000, 0.308, -0.059, 0.000, -0.220,
-0.673, 0.673, 0.308, -0.071, 0.071, -0.346,
-0.673, 0.673, 0.308, -0.042, 0.042, -0.220,
-0.000, 0.951, 0.308, -0.000, 0.100, -0.346,
-0.000, 0.951, 0.308, -0.000, 0.059, -0.220,
0.673, 0.673, 0.308, 0.071, 0.071, -0.346,
0.673, 0.673, 0.308, 0.042, 0.042, -0.220,
0.951, -0.000, 0.308, 0.100, 0.000, -0.346,
0.951, -0.000, 0.308, 0.059, 0.000, -0.220]
@valveQuadStrip2 = [
0.707, 0.707, 0.000, 0.042, 0.042, -0.220,
0.707, 0.707, 0.000, 0.042, 0.042, 0.220,
1.000, 0.000, 0.000, 0.059, 0.000, -0.220,
1.000, 0.000, 0.000, 0.059, -0.000, 0.220,
0.707, -0.707, -0.000, 0.042, -0.042, -0.220,
0.707, -0.707, -0.000, 0.042, -0.042, 0.220,
0.000, -1.000, -0.000, 0.000, -0.059, -0.220,
0.000, -1.000, -0.000, 0.000, -0.059, 0.220,
0.707, 0.707, 0.000, 0.042, 0.042, -0.220,
0.707, 0.707, 0.000, 0.042, 0.042, 0.220,
1.000, 0.000, 0.000, 0.059, 0.000, -0.220,
1.000, 0.000, 0.000, 0.059, -0.000, 0.220,
0.707, -0.707, -0.000, 0.042, -0.042, -0.220,
0.707, -0.707, -0.000, 0.042, -0.042, 0.220,
0.000, -1.000, -0.000, 0.000, -0.059, -0.220,
0.000, -1.000, -0.000, 0.000, -0.059, 0.220,
-0.707, -0.707, -0.000, -0.042, -0.042, -0.220,
-0.707, -0.707, -0.000, -0.042, -0.042, 0.220,
-1.000, -0.000, 0.000, -0.059, 0.000, -0.220,
-1.000, -0.000, 0.000, -0.059, -0.000, 0.220,
-0.707, 0.707, 0.000, -0.042, 0.042, -0.220,
-0.707, 0.707, 0.000, -0.042, 0.042, 0.220,
-0.000, 1.000, 0.000, -0.000, 0.059, -0.220,
-0.000, 1.000, 0.000, -0.000, 0.059, 0.220,
0.707, 0.707, 0.000, 0.042, 0.042, -0.220,
0.707, 0.707, 0.000, 0.042, 0.042, 0.220,
1.000, 0.000, 0.000, 0.059, 0.000, -0.220,
1.000, 0.000, 0.000, 0.059, -0.000, 0.220]
-0.707, -0.707, -0.000, -0.042, -0.042, 0.220,
-1.000, -0.000, 0.000, -0.059, 0.000, -0.220,
-1.000, -0.000, 0.000, -0.059, -0.000, 0.220,
-0.707, 0.707, 0.000, -0.042, 0.042, -0.220,
-0.707, 0.707, 0.000, -0.042, 0.042, 0.220,
-0.000, 1.000, 0.000, -0.000, 0.059, -0.220,
-0.000, 1.000, 0.000, -0.000, 0.059, 0.220,
0.707, 0.707, 0.000, 0.042, 0.042, -0.220,
0.707, 0.707, 0.000, 0.042, 0.042, 0.220,
1.000, 0.000, 0.000, 0.059, 0.000, -0.220,
1.000, 0.000, 0.000, 0.059, -0.000, 0.220]
@valveQuadStrip3 = [
0.707, 0.707, 0.000, 0.071, 0.071, -0.500,
0.707, 0.707, 0.000, 0.071, 0.071, -0.346,
1.000, -0.000, 0.000, 0.100, 0.000, -0.500,
1.000, -0.000, 0.000, 0.100, 0.000, -0.346,
0.707, -0.707, -0.000, 0.071, -0.071, -0.500,
0.707, -0.707, -0.000, 0.071, -0.071, -0.346,
0.000, -1.000, -0.000, 0.000, -0.100, -0.500,
0.000, -1.000, -0.000, 0.000, -0.100, -0.346,
0.707, 0.707, 0.000, 0.071, 0.071, -0.500,
0.707, 0.707, 0.000, 0.071, 0.071, -0.346,
1.000, -0.000, 0.000, 0.100, 0.000, -0.500,
1.000, -0.000, 0.000, 0.100, 0.000, -0.346,
0.707, -0.707, -0.000, 0.071, -0.071, -0.500,
0.707, -0.707, -0.000, 0.071, -0.071, -0.346,
0.000, -1.000, -0.000, 0.000, -0.100, -0.500,
0.000, -1.000, -0.000, 0.000, -0.100, -0.346,
-0.707, -0.707, -0.000, -0.071, -0.071, -0.500,
-0.707, -0.707, -0.000, -0.071, -0.071, -0.346,
-1.000, -0.000, -0.000, -0.100, 0.000, -0.500,
-1.000, -0.000, -0.000, -0.100, 0.000, -0.346,
-0.707, 0.707, 0.000, -0.071, 0.071, -0.500,
-0.707, 0.707, 0.000, -0.071, 0.071, -0.346,
-0.000, 1.000, 0.000, -0.000, 0.100, -0.500,
-0.000, 1.000, 0.000, -0.000, 0.100, -0.346,
0.707, 0.707, 0.000, 0.071, 0.071, -0.500,
0.707, 0.707, 0.000, 0.071, 0.071, -0.346,
1.000, -0.000, 0.000, 0.100, 0.000, -0.500,
1.000, -0.000, 0.000, 0.100, 0.000, -0.346]
-1.000, -0.000, -0.000, -0.100, 0.000, -0.500,
-1.000, -0.000, -0.000, -0.100, 0.000, -0.346,
-0.707, 0.707, 0.000, -0.071, 0.071, -0.500,
-0.707, 0.707, 0.000, -0.071, 0.071, -0.346,
-0.000, 1.000, 0.000, -0.000, 0.100, -0.500,
-0.000, 1.000, 0.000, -0.000, 0.100, -0.346,
0.707, 0.707, 0.000, 0.071, 0.071, -0.500,
0.707, 0.707, 0.000, 0.071, 0.071, -0.346,
1.000, -0.000, 0.000, 0.100, 0.000, -0.500,
1.000, -0.000, 0.000, 0.100, 0.000, -0.346]
@valveQuadStrip4 = [
-0.000, 1.000, 0.000, -0.000, 0.100, 0.354,
-0.000, 1.000, 0.000, -0.000, 0.100, 0.500,
0.707, 0.707, 0.000, 0.071, 0.071, 0.354,
0.707, 0.707, 0.000, 0.071, 0.071, 0.500,
1.000, 0.000, -0.000, 0.100, -0.000, 0.354,
1.000, 0.000, -0.000, 0.100, -0.000, 0.500,
0.707, -0.707, -0.000, 0.071, -0.071, 0.354,
0.707, -0.707, -0.000, 0.071, -0.071, 0.500,
0.000, -1.000, -0.000, 0.000, -0.100, 0.354,
0.000, -1.000, -0.000, 0.000, -0.100, 0.500,
-0.707, -0.707, -0.000, -0.071, -0.071, 0.354,
-0.707, -0.707, -0.000, -0.071, -0.071, 0.500,
-1.000, -0.000, 0.000, -0.100, -0.000, 0.354,
-1.000, -0.000, 0.000, -0.100, -0.000, 0.500,
-0.707, 0.707, 0.000, -0.071, 0.071, 0.354,
-0.707, 0.707, 0.000, -0.071, 0.071, 0.500,
-0.000, 1.000, 0.000, -0.000, 0.100, 0.354,
-0.000, 1.000, 0.000, -0.000, 0.100, 0.500,
0.707, 0.707, 0.000, 0.071, 0.071, 0.354,
0.707, 0.707, 0.000, 0.071, 0.071, 0.500]
-0.000, 1.000, 0.000, -0.000, 0.100, 0.354,
-0.000, 1.000, 0.000, -0.000, 0.100, 0.500,
0.707, 0.707, 0.000, 0.071, 0.071, 0.354,
0.707, 0.707, 0.000, 0.071, 0.071, 0.500,
1.000, 0.000, -0.000, 0.100, -0.000, 0.354,
1.000, 0.000, -0.000, 0.100, -0.000, 0.500,
0.707, -0.707, -0.000, 0.071, -0.071, 0.354,
0.707, -0.707, -0.000, 0.071, -0.071, 0.500,
0.000, -1.000, -0.000, 0.000, -0.100, 0.354,
0.000, -1.000, -0.000, 0.000, -0.100, 0.500,
-0.707, -0.707, -0.000, -0.071, -0.071, 0.354,
-0.707, -0.707, -0.000, -0.071, -0.071, 0.500,
-1.000, -0.000, 0.000, -0.100, -0.000, 0.354,
-1.000, -0.000, 0.000, -0.100, -0.000, 0.500,
-0.707, 0.707, 0.000, -0.071, 0.071, 0.354,
-0.707, 0.707, 0.000, -0.071, 0.071, 0.500,
-0.000, 1.000, 0.000, -0.000, 0.100, 0.354,
-0.000, 1.000, 0.000, -0.000, 0.100, 0.500,
0.707, 0.707, 0.000, 0.071, 0.071, 0.354,
0.707, 0.707, 0.000, 0.071, 0.071, 0.500]
@valveQuadStrip5 = [
0.676, 0.676, -0.291, 0.042, 0.042, 0.220,
0.676, 0.676, -0.291, 0.071, 0.071, 0.354,
0.957, 0.000, -0.291, 0.059, -0.000, 0.220,
0.957, 0.000, -0.291, 0.100, -0.000, 0.354,
0.676, -0.676, -0.291, 0.042, -0.042, 0.220,
0.676, -0.676, -0.291, 0.071, -0.071, 0.354,
0.000, -0.957, -0.291, 0.000, -0.059, 0.220,
0.000, -0.957, -0.291, 0.000, -0.100, 0.354,
-0.676, -0.676, -0.291, -0.042, -0.042, 0.220,
-0.676, -0.676, -0.291, -0.071, -0.071, 0.354,
-0.957, 0.000, -0.291, -0.059, -0.000, 0.220,
-0.957, 0.000, -0.291, -0.100, -0.000, 0.354,
-0.676, 0.676, -0.291, -0.042, 0.042, 0.220,
-0.676, 0.676, -0.291, -0.071, 0.071, 0.354,
0.000, 0.957, -0.291, -0.000, 0.059, 0.220,
0.000, 0.957, -0.291, -0.000, 0.100, 0.354,
0.676, 0.676, -0.291, 0.042, 0.042, 0.220,
0.676, 0.676, -0.291, 0.071, 0.071, 0.354,
0.957, 0.000, -0.291, 0.059, -0.000, 0.220,
0.957, 0.000, -0.291, 0.100, -0.000, 0.354]
0.676, 0.676, -0.291, 0.042, 0.042, 0.220,
0.676, 0.676, -0.291, 0.071, 0.071, 0.354,
0.957, 0.000, -0.291, 0.059, -0.000, 0.220,
0.957, 0.000, -0.291, 0.100, -0.000, 0.354,
0.676, -0.676, -0.291, 0.042, -0.042, 0.220,
0.676, -0.676, -0.291, 0.071, -0.071, 0.354,
0.000, -0.957, -0.291, 0.000, -0.059, 0.220,
0.000, -0.957, -0.291, 0.000, -0.100, 0.354,
-0.676, -0.676, -0.291, -0.042, -0.042, 0.220,
-0.676, -0.676, -0.291, -0.071, -0.071, 0.354,
-0.957, 0.000, -0.291, -0.059, -0.000, 0.220,
-0.957, 0.000, -0.291, -0.100, -0.000, 0.354,
-0.676, 0.676, -0.291, -0.042, 0.042, 0.220,
-0.676, 0.676, -0.291, -0.071, 0.071, 0.354,
0.000, 0.957, -0.291, -0.000, 0.059, 0.220,
0.000, 0.957, -0.291, -0.000, 0.100, 0.354,
0.676, 0.676, -0.291, 0.042, 0.042, 0.220,
0.676, 0.676, -0.291, 0.071, 0.071, 0.354,
0.957, 0.000, -0.291, 0.059, -0.000, 0.220,
0.957, 0.000, -0.291, 0.100, -0.000, 0.354]
@gearQuadStrip1 = [
0.120, -0.050, 0.991, 0.208, -0.086, 0.111,
0.143, -0.046, 0.989, 0.375, -0.155, 0.087,
0.130, 0, 0.991, 0.226, 0, 0.111,
0.149, -0.012, 0.989, 0.406, 0, 0.087,
0.120, 0.050, 0.991, 0.208, 0.086, 0.111,
0.133, 0.069, 0.989, 0.375, 0.155, 0.087,
0.092, 0.092, 0.991, 0.160, 0.160, 0.111,
0.114, 0.097, 0.989, 0.287, 0.287, 0.087,
0.050, 0.120, 0.991, 0.086, 0.208, 0.111,
0.046, 0.143, 0.989, 0.155, 0.375, 0.087,
0, 0.130, 0.991, 0, 0.226, 0.111,
0.012, 0.149, 0.989, 0, 0.406, 0.087,
-0.050, 0.120, 0.991, -0.086, 0.208, 0.111,
-0.069, 0.133, 0.989, -0.155, 0.375, 0.087,
-0.092, 0.092, 0.991, -0.160, 0.160, 0.111,
-0.097, 0.114, 0.989, -0.287, 0.287, 0.087,
-0.120, 0.050, 0.991, -0.208, 0.086, 0.111,
-0.143, 0.046, 0.989, -0.375, 0.155, 0.087,
-0.130, 0, 0.991, -0.226, 0, 0.111,
-0.149, 0.012, 0.989, -0.406, 0, 0.087,
-0.120, -0.050, 0.991, -0.208, -0.086, 0.111,
-0.133, -0.069, 0.989, -0.375, -0.155, 0.087,
-0.092, -0.092, 0.991, -0.160, -0.160, 0.111,
-0.114, -0.097, 0.989, -0.287, -0.287, 0.087,
-0.050, -0.120, 0.991, -0.086, -0.208, 0.111,
-0.046, -0.143, 0.989, -0.155, -0.375, 0.087,
0, -0.130, 0.991, 0, -0.226, 0.111,
-0.012, -0.149, 0.989, 0, -0.406, 0.087,
0.050, -0.120, 0.991, 0.086, -0.208, 0.111,
0.069, -0.133, 0.989, 0.155, -0.375, 0.087,
0.092, -0.092, 0.991, 0.160, -0.160, 0.111,
0.097, -0.114, 0.989, 0.287, -0.287, 0.087,
0.120, -0.050, 0.991, 0.208, -0.086, 0.111,
0.143, -0.046, 0.989, 0.375, -0.155, 0.087,
0.130, 0, 0.991, 0.226, 0, 0.111,
0.149, -0.012, 0.989, 0.406, 0, 0.087]
0.120, -0.050, 0.991, 0.208, -0.086, 0.111,
0.143, -0.046, 0.989, 0.375, -0.155, 0.087,
0.130, 0, 0.991, 0.226, 0, 0.111,
0.149, -0.012, 0.989, 0.406, 0, 0.087,
0.120, 0.050, 0.991, 0.208, 0.086, 0.111,
0.133, 0.069, 0.989, 0.375, 0.155, 0.087,
0.092, 0.092, 0.991, 0.160, 0.160, 0.111,
0.114, 0.097, 0.989, 0.287, 0.287, 0.087,
0.050, 0.120, 0.991, 0.086, 0.208, 0.111,
0.046, 0.143, 0.989, 0.155, 0.375, 0.087,
0, 0.130, 0.991, 0, 0.226, 0.111,
0.012, 0.149, 0.989, 0, 0.406, 0.087,
-0.050, 0.120, 0.991, -0.086, 0.208, 0.111,
-0.069, 0.133, 0.989, -0.155, 0.375, 0.087,
-0.092, 0.092, 0.991, -0.160, 0.160, 0.111,
-0.097, 0.114, 0.989, -0.287, 0.287, 0.087,
-0.120, 0.050, 0.991, -0.208, 0.086, 0.111,
-0.143, 0.046, 0.989, -0.375, 0.155, 0.087,
-0.130, 0, 0.991, -0.226, 0, 0.111,
-0.149, 0.012, 0.989, -0.406, 0, 0.087,
-0.120, -0.050, 0.991, -0.208, -0.086, 0.111,
-0.133, -0.069, 0.989, -0.375, -0.155, 0.087,
-0.092, -0.092, 0.991, -0.160, -0.160, 0.111,
-0.114, -0.097, 0.989, -0.287, -0.287, 0.087,
-0.050, -0.120, 0.991, -0.086, -0.208, 0.111,
-0.046, -0.143, 0.989, -0.155, -0.375, 0.087,
0, -0.130, 0.991, 0, -0.226, 0.111,
-0.012, -0.149, 0.989, 0, -0.406, 0.087,
0.050, -0.120, 0.991, 0.086, -0.208, 0.111,
0.069, -0.133, 0.989, 0.155, -0.375, 0.087,
0.092, -0.092, 0.991, 0.160, -0.160, 0.111,
0.097, -0.114, 0.989, 0.287, -0.287, 0.087,
0.120, -0.050, 0.991, 0.208, -0.086, 0.111,
0.143, -0.046, 0.989, 0.375, -0.155, 0.087,
0.130, 0, 0.991, 0.226, 0, 0.111,
0.149, -0.012, 0.989, 0.406, 0, 0.087]
@gearQuadStrip2 = [
-1, 0, 0, 0.226, 0, -0.111,
-1, 0, 0, 0.226, 0, 0.111,
-0.924, -0.383, 0, 0.208, 0.086, -0.111,
-0.924, -0.383, 0, 0.208, 0.086, 0.111,
-0.707, -0.707, 0, 0.160, 0.160, -0.111,
-0.707, -0.707, 0, 0.160, 0.160, 0.111,
-0.383, -0.924, 0, 0.086, 0.208, -0.111,
-0.383, -0.924, 0, 0.086, 0.208, 0.111,
0, -1, 0, 0, 0.226, -0.111,
0, -1, 0, 0, 0.226, 0.111,
0.383, -0.924, 0, -0.086, 0.208, -0.111,
0.383, -0.924, 0, -0.086, 0.208, 0.111,
0.707, -0.707, 0, -0.160, 0.160, -0.111,
0.707, -0.707, 0, -0.160, 0.160, 0.111,
0.924, -0.383, 0, -0.208, 0.086, -0.111,
0.924, -0.383, 0, -0.208, 0.086, 0.111,
1, 0, 0, -0.226, 0, -0.111,
1, 0, 0, -0.226, 0, 0.111,
0.924, 0.383, 0, -0.208, -0.086, -0.111,
0.924, 0.383, 0, -0.208, -0.086, 0.111,
0.707, 0.707, 0, -0.160, -0.160, -0.111,
0.707, 0.707, 0, -0.160, -0.160, 0.111,
0.383, 0.924, 0, -0.086, -0.208, -0.111,
0.383, 0.924, 0, -0.086, -0.208, 0.111,
0, 1, 0, 0, -0.226, -0.111,
0, 1, 0, 0, -0.226, 0.111,
-0.383, 0.924, 0, 0.086, -0.208, -0.111,
-0.383, 0.924, 0, 0.086, -0.208, 0.111,
-0.707, 0.707, 0, 0.160, -0.160, -0.111,
-0.707, 0.707, 0, 0.160, -0.160, 0.111,
-0.924, 0.383, 0, 0.208, -0.086, -0.111,
-0.924, 0.383, 0, 0.208, -0.086, 0.111,
-1, 0, 0, 0.226, 0, -0.111,
-1, 0, 0, 0.226, 0, 0.111,
-0.924, -0.383, 0, 0.208, 0.086, -0.111,
-0.924, -0.383, 0, 0.208, 0.086, 0.111]
-1, 0, 0, 0.226, 0, -0.111,
-1, 0, 0, 0.226, 0, 0.111,
-0.924, -0.383, 0, 0.208, 0.086, -0.111,
-0.924, -0.383, 0, 0.208, 0.086, 0.111,
-0.707, -0.707, 0, 0.160, 0.160, -0.111,
-0.707, -0.707, 0, 0.160, 0.160, 0.111,
-0.383, -0.924, 0, 0.086, 0.208, -0.111,
-0.383, -0.924, 0, 0.086, 0.208, 0.111,
0, -1, 0, 0, 0.226, -0.111,
0, -1, 0, 0, 0.226, 0.111,
0.383, -0.924, 0, -0.086, 0.208, -0.111,
0.383, -0.924, 0, -0.086, 0.208, 0.111,
0.707, -0.707, 0, -0.160, 0.160, -0.111,
0.707, -0.707, 0, -0.160, 0.160, 0.111,
0.924, -0.383, 0, -0.208, 0.086, -0.111,
0.924, -0.383, 0, -0.208, 0.086, 0.111,
1, 0, 0, -0.226, 0, -0.111,
1, 0, 0, -0.226, 0, 0.111,
0.924, 0.383, 0, -0.208, -0.086, -0.111,
0.924, 0.383, 0, -0.208, -0.086, 0.111,
0.707, 0.707, 0, -0.160, -0.160, -0.111,
0.707, 0.707, 0, -0.160, -0.160, 0.111,
0.383, 0.924, 0, -0.086, -0.208, -0.111,
0.383, 0.924, 0, -0.086, -0.208, 0.111,
0, 1, 0, 0, -0.226, -0.111,
0, 1, 0, 0, -0.226, 0.111,
-0.383, 0.924, 0, 0.086, -0.208, -0.111,
-0.383, 0.924, 0, 0.086, -0.208, 0.111,
-0.707, 0.707, 0, 0.160, -0.160, -0.111,
-0.707, 0.707, 0, 0.160, -0.160, 0.111,
-0.924, 0.383, 0, 0.208, -0.086, -0.111,
-0.924, 0.383, 0, 0.208, -0.086, 0.111,
-1, 0, 0, 0.226, 0, -0.111,
-1, 0, 0, 0.226, 0, 0.111,
-0.924, -0.383, 0, 0.208, 0.086, -0.111,
-0.924, -0.383, 0, 0.208, 0.086, 0.111]
@gearQuadStrip3 = [
0.149, -0.012, -0.989, 0.406, 0, -0.087,
0.130, 0, -0.991, 0.226, 0, -0.111,
0.133, 0.069, -0.989, 0.375, 0.155, -0.087,
0.120, 0.050, -0.991, 0.208, 0.086, -0.111,
0.114, 0.097, -0.989, 0.287, 0.287, -0.087,
0.092, 0.092, -0.991, 0.160, 0.160, -0.111,
0.046, 0.143, -0.989, 0.155, 0.375, -0.087,
0.050, 0.120, -0.991, 0.086, 0.208, -0.111,
0.012, 0.149, -0.989, 0, 0.406, -0.087,
0, 0.130, -0.991, 0, 0.226, -0.111,
-0.069, 0.133, -0.989, -0.155, 0.375, -0.087,
-0.050, 0.120, -0.991, -0.086, 0.208, -0.111,
-0.097, 0.114, -0.989, -0.287, 0.287, -0.087,
-0.092, 0.092, -0.991, -0.160, 0.160, -0.111,
-0.143, 0.046, -0.989, -0.375, 0.155, -0.087,
-0.120, 0.050, -0.991, -0.208, 0.086, -0.111,
-0.149, 0.012, -0.989, -0.406, 0, -0.087,
-0.130, 0, -0.991, -0.226, 0, -0.111,
0.149, -0.012, -0.989, 0.406, 0, -0.087,
0.130, 0, -0.991, 0.226, 0, -0.111,
0.133, 0.069, -0.989, 0.375, 0.155, -0.087,
0.120, 0.050, -0.991, 0.208, 0.086, -0.111,
0.114, 0.097, -0.989, 0.287, 0.287, -0.087,
0.092, 0.092, -0.991, 0.160, 0.160, -0.111,
0.046, 0.143, -0.989, 0.155, 0.375, -0.087,
0.050, 0.120, -0.991, 0.086, 0.208, -0.111,
0.012, 0.149, -0.989, 0, 0.406, -0.087,
0, 0.130, -0.991, 0, 0.226, -0.111,
-0.069, 0.133, -0.989, -0.155, 0.375, -0.087,
-0.050, 0.120, -0.991, -0.086, 0.208, -0.111,
-0.097, 0.114, -0.989, -0.287, 0.287, -0.087,
-0.092, 0.092, -0.991, -0.160, 0.160, -0.111,
-0.143, 0.046, -0.989, -0.375, 0.155, -0.087,
-0.120, 0.050, -0.991, -0.208, 0.086, -0.111,
-0.149, 0.012, -0.989, -0.406, 0, -0.087,
-0.130, 0, -0.991, -0.226, 0, -0.111,
-0.133, -0.069, -0.989, -0.375, -0.155, -0.087,
-0.120, -0.050, -0.991, -0.208, -0.086, -0.111,
-0.114, -0.097, -0.989, -0.287, -0.287, -0.087,
-0.092, -0.092, -0.991, -0.160, -0.160, -0.111,
-0.046, -0.143, -0.989, -0.155, -0.375, -0.087,
-0.050, -0.120, -0.991, -0.086, -0.208, -0.111,
-0.012, -0.149, -0.989, 0, -0.406, -0.087,
0, -0.130, -0.991, 0, -0.226, -0.111,
0.069, -0.133, -0.989, 0.155, -0.375, -0.087,
0.050, -0.120, -0.991, 0.086, -0.208, -0.111,
0.097, -0.114, -0.989, 0.287, -0.287, -0.087,
0.092, -0.092, -0.991, 0.160, -0.160, -0.111,
0.143, -0.046, -0.989, 0.375, -0.155, -0.087,
0.120, -0.050, -0.991, 0.208, -0.086, -0.111,
0.149, -0.012, -0.989, 0.406, 0, -0.087,
0.130, 0, -0.991, 0.226, 0, -0.111,
0.133, 0.069, -0.989, 0.375, 0.155, -0.087,
0.120, 0.050, -0.991, 0.208, 0.086, -0.111]
-0.012, -0.149, -0.989, 0, -0.406, -0.087,
0, -0.130, -0.991, 0, -0.226, -0.111,
0.069, -0.133, -0.989, 0.155, -0.375, -0.087,
0.050, -0.120, -0.991, 0.086, -0.208, -0.111,
0.097, -0.114, -0.989, 0.287, -0.287, -0.087,
0.092, -0.092, -0.991, 0.160, -0.160, -0.111,
0.143, -0.046, -0.989, 0.375, -0.155, -0.087,
0.120, -0.050, -0.991, 0.208, -0.086, -0.111,
0.149, -0.012, -0.989, 0.406, 0, -0.087,
0.130, 0, -0.991, 0.226, 0, -0.111,
0.133, 0.069, -0.989, 0.375, 0.155, -0.087,
0.120, 0.050, -0.991, 0.208, 0.086, -0.111]
@gearQuads = [
0.981, 0.195, 0, 0.375, 0.155, 0.087,
0.981, 0.195, 0, 0.406, 0, 0.087,
0.981, 0.195, 0, 0.406, 0, -0.087,
0.981, 0.195, 0, 0.375, 0.155, -0.087,
0.556, 0.831, 0, 0.155, 0.375, 0.087,
0.556, 0.831, 0, 0.287, 0.287, 0.087,
0.556, 0.831, 0, 0.287, 0.287, -0.087,
0.556, 0.831, 0, 0.155, 0.375, -0.087,
-0.195, 0.981, 0,-0.155, 0.375, 0.087,
-0.195, 0.981, 0, 0, 0.406, 0.087,
-0.195, 0.981, 0, 0, 0.406, -0.087,
-0.195, 0.981, 0,-0.155, 0.375, -0.087,
-0.831, 0.556, 0,-0.375, 0.155, 0.087,
-0.831, 0.556, 0,-0.287, 0.287, 0.087,
-0.831, 0.556, 0,-0.287, 0.287, -0.087,
-0.831, 0.556, 0,-0.375, 0.155, -0.087,
-0.981, -0.195, 0,-0.375, -0.155, 0.087,
-0.981, -0.195, 0,-0.406, 0, 0.087,
-0.981, -0.195, 0,-0.406, 0, -0.087,
-0.981, -0.195, 0,-0.375, -0.155, -0.087,
-0.556, -0.831, 0,-0.155, -0.375, 0.087,
-0.556, -0.831, 0,-0.287, -0.287, 0.087,
-0.556, -0.831, 0,-0.287, -0.287, -0.087,
-0.556, -0.831, 0,-0.155, -0.375, -0.087,
0.195, -0.981, 0, 0.155, -0.375, 0.087,
0.195, -0.981, 0, 0, -0.406, 0.087,
0.195, -0.981, 0, 0, -0.406, -0.087,
0.195, -0.981, 0, 0.155, -0.375, -0.087,
0.831, -0.556, 0, 0.375, -0.155, 0.087,
0.831, -0.556, 0, 0.287, -0.287, 0.087,
0.831, -0.556, 0, 0.287, -0.287, -0.087,
0.831, -0.556, 0, 0.375, -0.155, -0.087,
-0.021, -1, 0, 0.534, -0.159, -0.056,
-0.021, -1, 0, 0.534, -0.159, 0.056,
-0.021, -1, 0, 0.375, -0.155, 0.087,
-0.021, -1, 0, 0.375, -0.155, -0.087,
0.981, 0.195, 0, 0.375, 0.155, 0.087,
0.981, 0.195, 0, 0.406, 0, 0.087,
0.981, 0.195, 0, 0.406, 0, -0.087,
0.981, 0.195, 0, 0.375, 0.155, -0.087,
0.556, 0.831, 0, 0.155, 0.375, 0.087,
0.556, 0.831, 0, 0.287, 0.287, 0.087,
0.556, 0.831, 0, 0.287, 0.287, -0.087,
0.556, 0.831, 0, 0.155, 0.375, -0.087,
-0.195, 0.981, 0,-0.155, 0.375, 0.087,
-0.195, 0.981, 0, 0, 0.406, 0.087,
-0.195, 0.981, 0, 0, 0.406, -0.087,
-0.195, 0.981, 0,-0.155, 0.375, -0.087,
-0.831, 0.556, 0,-0.375, 0.155, 0.087,
-0.831, 0.556, 0,-0.287, 0.287, 0.087,
-0.831, 0.556, 0,-0.287, 0.287, -0.087,
-0.831, 0.556, 0,-0.375, 0.155, -0.087,
-0.981, -0.195, 0,-0.375, -0.155, 0.087,
-0.981, -0.195, 0,-0.406, 0, 0.087,
-0.981, -0.195, 0,-0.406, 0, -0.087,
-0.981, -0.195, 0,-0.375, -0.155, -0.087,
-0.556, -0.831, 0,-0.155, -0.375, 0.087,
-0.556, -0.831, 0,-0.287, -0.287, 0.087,
-0.556, -0.831, 0,-0.287, -0.287, -0.087,
-0.556, -0.831, 0,-0.155, -0.375, -0.087,
0.195, -0.981, 0, 0.155, -0.375, 0.087,
0.195, -0.981, 0, 0, -0.406, 0.087,
0.195, -0.981, 0, 0, -0.406, -0.087,
0.195, -0.981, 0, 0.155, -0.375, -0.087,
0.831, -0.556, 0, 0.375, -0.155, 0.087,
0.831, -0.556, 0, 0.287, -0.287, 0.087,
0.831, -0.556, 0, 0.287, -0.287, -0.087,
0.831, -0.556, 0, 0.375, -0.155, -0.087,
-0.021, -1, 0, 0.534, -0.159, -0.056,
-0.021, -1, 0, 0.534, -0.159, 0.056,
-0.021, -1, 0, 0.375, -0.155, 0.087,
-0.021, -1, 0, 0.375, -0.155, -0.087,
0.187, -0.037, -0.982, 0.554, -0.058, -0.056,
0.187, -0.037, -0.982, 0.534, -0.159, -0.056,
0.143, -0.046, -0.989, 0.375, -0.155, -0.087,
0.149, -0.012, -0.989, 0.406, 0, -0.087,
0.363, 0.932, 0, 0.554, -0.058, 0.056,
0.363, 0.932, 0, 0.554, -0.058, -0.056,
0.363, 0.932, 0, 0.406, 0, -0.087,
0.363, 0.932, 0, 0.406, 0, 0.087,
0.981, -0.195, 0, 0.554, -0.058, 0.056,
0.981, -0.195, 0, 0.534, -0.159, 0.056,
0.981, -0.195, 0, 0.534, -0.159, -0.056,
0.981, -0.195, 0, 0.554, -0.058, -0.056,
0.187, -0.037, 0.982, 0.534, -0.159, 0.056,
0.187, -0.037, 0.982, 0.554, -0.058, 0.056,
0.149, -0.012, 0.989, 0.406, 0, 0.087,
0.143, -0.046, 0.989, 0.375, -0.155, 0.087,
-0.722, -0.692, 0, 0.266, -0.490, -0.056,
-0.722, -0.692, 0, 0.266, -0.490, 0.056,
-0.722, -0.692, 0, 0.155, -0.375, 0.087,
-0.722, -0.692, 0, 0.155, -0.375, -0.087,
0.149, -0.012, -0.989, 0.406, 0, -0.087,
0.363, 0.932, 0, 0.554, -0.058, 0.056,
0.363, 0.932, 0, 0.554, -0.058, -0.056,
0.363, 0.932, 0, 0.406, 0, -0.087,
0.363, 0.932, 0, 0.406, 0, 0.087,
0.981, -0.195, 0, 0.554, -0.058, 0.056,
0.981, -0.195, 0, 0.534, -0.159, 0.056,
0.981, -0.195, 0, 0.534, -0.159, -0.056,
0.981, -0.195, 0, 0.554, -0.058, -0.056,
0.187, -0.037, 0.982, 0.534, -0.159, 0.056,
0.187, -0.037, 0.982, 0.554, -0.058, 0.056,
0.149, -0.012, 0.989, 0.406, 0, 0.087,
0.143, -0.046, 0.989, 0.375, -0.155, 0.087,
-0.722, -0.692, 0, 0.266, -0.490, -0.056,
-0.722, -0.692, 0, 0.266, -0.490, 0.056,
-0.722, -0.692, 0, 0.155, -0.375, 0.087,
-0.722, -0.692, 0, 0.155, -0.375, -0.087,
0.106, -0.159, -0.982, 0.351, -0.433, -0.056,
0.106, -0.159, -0.982, 0.266, -0.490, -0.056,
0.069, -0.133, -0.989, 0.155, -0.375, -0.087,
0.097, -0.114, -0.989, 0.287, -0.287, -0.087,
0.916, 0.402, 0, 0.351, -0.433, 0.056,
0.916, 0.402, 0, 0.351, -0.433, -0.056,
0.916, 0.402, 0, 0.287, -0.287, -0.087,
0.916, 0.402, 0, 0.287, -0.287, 0.087,
0.556, -0.831, 0, 0.351, -0.433, 0.056,
0.556, -0.831, 0, 0.266, -0.490, 0.056,
0.556, -0.831, 0, 0.266, -0.490, -0.056,
0.556, -0.831, 0, 0.351, -0.433, -0.056,
0.106, -0.159, 0.982, 0.266, -0.490, 0.056,
0.106, -0.159, 0.982, 0.351, -0.433, 0.056,
0.097, -0.114, 0.989, 0.287, -0.287, 0.087,
0.069, -0.133, 0.989, 0.155, -0.375, 0.087,
-1, 0.021, 0,-0.159, -0.534, -0.056,
-1, 0.021, 0,-0.159, -0.534, 0.056,
-1, 0.021, 0,-0.155, -0.375, 0.087,
-1, 0.021, 0,-0.155, -0.375, -0.087,
0.916, 0.402, 0, 0.351, -0.433, 0.056,
0.916, 0.402, 0, 0.351, -0.433, -0.056,
0.916, 0.402, 0, 0.287, -0.287, -0.087,
0.916, 0.402, 0, 0.287, -0.287, 0.087,
0.556, -0.831, 0, 0.351, -0.433, 0.056,
0.556, -0.831, 0, 0.266, -0.490, 0.056,
0.556, -0.831, 0, 0.266, -0.490, -0.056,
0.556, -0.831, 0, 0.351, -0.433, -0.056,
0.106, -0.159, 0.982, 0.266, -0.490, 0.056,
0.106, -0.159, 0.982, 0.351, -0.433, 0.056,
0.097, -0.114, 0.989, 0.287, -0.287, 0.087,
0.069, -0.133, 0.989, 0.155, -0.375, 0.087,
-1, 0.021, 0,-0.159, -0.534, -0.056,
-1, 0.021, 0,-0.159, -0.534, 0.056,
-1, 0.021, 0,-0.155, -0.375, 0.087,
-1, 0.021, 0,-0.155, -0.375, -0.087,
-0.037, -0.187, -0.982,-0.058, -0.554, -0.056,
-0.037, -0.187, -0.982,-0.159, -0.534, -0.056,
-0.046, -0.143, -0.989,-0.155, -0.375, -0.087,
-0.012, -0.149, -0.989, 0, -0.406, -0.087,
0.932, -0.363, 0,-0.058, -0.554, 0.056,
0.932, -0.363, 0,-0.058, -0.554, -0.056,
0.932, -0.363, 0, 0, -0.406, -0.087,
0.932, -0.363, 0, 0, -0.406, 0.087,
-0.195, -0.981, 0,-0.058, -0.554, 0.056,
-0.195, -0.981, 0,-0.159, -0.534, 0.056,
-0.195, -0.981, 0,-0.159, -0.534, -0.056,
-0.195, -0.981, 0,-0.058, -0.554, -0.056,
-0.037, -0.187, 0.982,-0.159, -0.534, 0.056,
-0.037, -0.187, 0.982,-0.058, -0.554, 0.056,
-0.012, -0.149, 0.989, 0, -0.406, 0.087,
-0.046, -0.143, 0.989,-0.155, -0.375, 0.087,
-0.692, 0.722, 0,-0.490, -0.266, -0.056,
-0.692, 0.722, 0,-0.490, -0.266, 0.056,
-0.692, 0.722, 0,-0.375, -0.155, 0.087,
-0.692, 0.722, 0,-0.375, -0.155, -0.087,
-0.012, -0.149, -0.989, 0, -0.406, -0.087,
0.932, -0.363, 0,-0.058, -0.554, 0.056,
0.932, -0.363, 0,-0.058, -0.554, -0.056,
0.932, -0.363, 0, 0, -0.406, -0.087,
0.932, -0.363, 0, 0, -0.406, 0.087,
-0.195, -0.981, 0,-0.058, -0.554, 0.056,
-0.195, -0.981, 0,-0.159, -0.534, 0.056,
-0.195, -0.981, 0,-0.159, -0.534, -0.056,
-0.195, -0.981, 0,-0.058, -0.554, -0.056,
-0.037, -0.187, 0.982,-0.159, -0.534, 0.056,
-0.037, -0.187, 0.982,-0.058, -0.554, 0.056,
-0.012, -0.149, 0.989, 0, -0.406, 0.087,
-0.046, -0.143, 0.989,-0.155, -0.375, 0.087,
-0.692, 0.722, 0,-0.490, -0.266, -0.056,
-0.692, 0.722, 0,-0.490, -0.266, 0.056,
-0.692, 0.722, 0,-0.375, -0.155, 0.087,
-0.692, 0.722, 0,-0.375, -0.155, -0.087,
-0.159, -0.106, -0.982,-0.433, -0.351, -0.056,
-0.159, -0.106, -0.982,-0.490, -0.266, -0.056,
-0.133, -0.069, -0.989,-0.375, -0.155, -0.087,
-0.114, -0.097, -0.989,-0.287, -0.287, -0.087,
0.402, -0.916, 0,-0.433, -0.351, 0.056,
0.402, -0.916, 0,-0.433, -0.351, -0.056,
0.402, -0.916, 0,-0.287, -0.287, -0.087,
0.402, -0.916, 0,-0.287, -0.287, 0.087,
-0.831, -0.556, 0,-0.433, -0.351, 0.056,
-0.831, -0.556, 0,-0.490, -0.266, 0.056,
-0.831, -0.556, 0,-0.490, -0.266, -0.056,
-0.831, -0.556, 0,-0.433, -0.351, -0.056,
-0.159, -0.106, 0.982,-0.490, -0.266, 0.056,
-0.159, -0.106, 0.982,-0.433, -0.351, 0.056,
-0.114, -0.097, 0.989,-0.287, -0.287, 0.087,
-0.133, -0.069, 0.989,-0.375, -0.155, 0.087,
0.021, 1, 0,-0.534, 0.159, -0.056,
0.021, 1, 0,-0.534, 0.159, 0.056,
0.021, 1, 0,-0.375, 0.155, 0.087,
0.021, 1, 0,-0.375, 0.155, -0.087,
-0.187, 0.037, -0.982,-0.554, 0.058, -0.056,
-0.187, 0.037, -0.982,-0.534, 0.159, -0.056,
-0.143, 0.046, -0.989,-0.375, 0.155, -0.087,
-0.149, 0.012, -0.989,-0.406, 0, -0.087,
-0.363, -0.932, 0,-0.554, 0.058, 0.056,
-0.363, -0.932, 0,-0.554, 0.058, -0.056,
-0.363, -0.932, 0,-0.406, 0, -0.087,
-0.363, -0.932, 0,-0.406, 0, 0.087,
-0.981, 0.195, 0,-0.554, 0.058, 0.056,
-0.981, 0.195, 0,-0.534, 0.159, 0.056,
-0.981, 0.195, 0,-0.534, 0.159, -0.056,
-0.981, 0.195, 0,-0.554, 0.058, -0.056,
-0.187, 0.037, 0.982,-0.534, 0.159, 0.056,
-0.187, 0.037, 0.982,-0.554, 0.058, 0.056,
-0.149, 0.012, 0.989,-0.406, 0, 0.087,
-0.143, 0.046, 0.989,-0.375, 0.155, 0.087,
0.722, 0.692, 0,-0.266, 0.490, -0.056,
0.722, 0.692, 0,-0.266, 0.490, 0.056,
0.722, 0.692, 0,-0.155, 0.375, 0.087,
0.722, 0.692, 0,-0.155, 0.375, -0.087,
-0.106, 0.159, -0.982,-0.351, 0.433, -0.056,
-0.106, 0.159, -0.982,-0.266, 0.490, -0.056,
-0.069, 0.133, -0.989,-0.155, 0.375, -0.087,
-0.097, 0.114, -0.989,-0.287, 0.287, -0.087,
-0.916, -0.402, 0,-0.351, 0.433, 0.056,
-0.916, -0.402, 0,-0.351, 0.433, -0.056,
-0.916, -0.402, 0,-0.287, 0.287, -0.087,
-0.916, -0.402, 0,-0.287, 0.287, 0.087,
-0.556, 0.831, 0,-0.351, 0.433, 0.056,
-0.556, 0.831, 0,-0.266, 0.490, 0.056,
-0.556, 0.831, 0,-0.266, 0.490, -0.056,
-0.556, 0.831, 0,-0.351, 0.433, -0.056,
-0.106, 0.159, 0.982,-0.266, 0.490, 0.056,
-0.106, 0.159, 0.982,-0.351, 0.433, 0.056,
-0.097, 0.114, 0.989,-0.287, 0.287, 0.087,
-0.069, 0.133, 0.989,-0.155, 0.375, 0.087,
1, -0.021, 0, 0.159, 0.534, -0.056,
1, -0.021, 0, 0.159, 0.534, 0.056,
1, -0.021, 0, 0.155, 0.375, 0.087,
1, -0.021, 0, 0.155, 0.375, -0.087,
0.037, 0.187, -0.982, 0.058, 0.554, -0.056,
0.037, 0.187, -0.982, 0.159, 0.534, -0.056,
0.046, 0.143, -0.989, 0.155, 0.375, -0.087,
0.012, 0.149, -0.989, 0, 0.406, -0.087,
-0.932, 0.363, 0, 0.058, 0.554, 0.056,
-0.932, 0.363, 0, 0.058, 0.554, -0.056,
-0.932, 0.363, 0, 0, 0.406, -0.087,
-0.932, 0.363, 0, 0, 0.406, 0.087,
0.195, 0.981, 0, 0.058, 0.554, 0.056,
0.195, 0.981, 0, 0.159, 0.534, 0.056,
0.195, 0.981, 0, 0.159, 0.534, -0.056,
0.195, 0.981, 0, 0.058, 0.554, -0.056,
0.037, 0.187, 0.982, 0.159, 0.534, 0.056,
0.037, 0.187, 0.982, 0.058, 0.554, 0.056,
0.012, 0.149, 0.989, 0, 0.406, 0.087,
0.046, 0.143, 0.989, 0.155, 0.375, 0.087,
0.692, -0.722, 0, 0.490, 0.266, -0.056,
0.692, -0.722, 0, 0.490, 0.266, 0.056,
0.692, -0.722, 0, 0.375, 0.155, 0.087,
0.692, -0.722, 0, 0.375, 0.155, -0.087,
0.159, 0.106, -0.982, 0.433, 0.351, -0.056,
0.159, 0.106, -0.982, 0.490, 0.266, -0.056,
0.133, 0.069, -0.989, 0.375, 0.155, -0.087,
0.114, 0.097, -0.989, 0.287, 0.287, -0.087,
-0.402, 0.916, 0, 0.433, 0.351, 0.056,
-0.402, 0.916, 0, 0.433, 0.351, -0.056,
-0.402, 0.916, 0, 0.287, 0.287, -0.087,
-0.402, 0.916, 0, 0.287, 0.287, 0.087,
0.831, 0.556, 0, 0.433, 0.351, 0.056,
0.831, 0.556, 0, 0.490, 0.266, 0.056,
0.831, 0.556, 0, 0.490, 0.266, -0.056,
0.831, 0.556, 0, 0.433, 0.351, -0.056,
0.159, 0.106, 0.982, 0.490, 0.266, 0.056,
0.159, 0.106, 0.982, 0.433, 0.351, 0.056,
0.114, 0.097, 0.989, 0.287, 0.287, 0.087,
0.133, 0.069, 0.989, 0.375, 0.155, 0.087]
0.402, -0.916, 0,-0.433, -0.351, 0.056,
0.402, -0.916, 0,-0.433, -0.351, -0.056,
0.402, -0.916, 0,-0.287, -0.287, -0.087,
0.402, -0.916, 0,-0.287, -0.287, 0.087,
-0.831, -0.556, 0,-0.433, -0.351, 0.056,
-0.831, -0.556, 0,-0.490, -0.266, 0.056,
-0.831, -0.556, 0,-0.490, -0.266, -0.056,
-0.831, -0.556, 0,-0.433, -0.351, -0.056,
-0.159, -0.106, 0.982,-0.490, -0.266, 0.056,
-0.159, -0.106, 0.982,-0.433, -0.351, 0.056,
-0.114, -0.097, 0.989,-0.287, -0.287, 0.087,
-0.133, -0.069, 0.989,-0.375, -0.155, 0.087,
0.021, 1, 0,-0.534, 0.159, -0.056,
0.021, 1, 0,-0.534, 0.159, 0.056,
0.021, 1, 0,-0.375, 0.155, 0.087,
0.021, 1, 0,-0.375, 0.155, -0.087,
-0.187, 0.037, -0.982,-0.554, 0.058, -0.056,
-0.187, 0.037, -0.982,-0.534, 0.159, -0.056,
-0.143, 0.046, -0.989,-0.375, 0.155, -0.087,
-0.149, 0.012, -0.989,-0.406, 0, -0.087,
-0.363, -0.932, 0,-0.554, 0.058, 0.056,
-0.363, -0.932, 0,-0.554, 0.058, -0.056,
-0.363, -0.932, 0,-0.406, 0, -0.087,
-0.363, -0.932, 0,-0.406, 0, 0.087,
-0.981, 0.195, 0,-0.554, 0.058, 0.056,
-0.981, 0.195, 0,-0.534, 0.159, 0.056,
-0.981, 0.195, 0,-0.534, 0.159, -0.056,
-0.981, 0.195, 0,-0.554, 0.058, -0.056,
-0.187, 0.037, 0.982,-0.534, 0.159, 0.056,
-0.187, 0.037, 0.982,-0.554, 0.058, 0.056,
-0.149, 0.012, 0.989,-0.406, 0, 0.087,
-0.143, 0.046, 0.989,-0.375, 0.155, 0.087,
0.722, 0.692, 0,-0.266, 0.490, -0.056,
0.722, 0.692, 0,-0.266, 0.490, 0.056,
0.722, 0.692, 0,-0.155, 0.375, 0.087,
0.722, 0.692, 0,-0.155, 0.375, -0.087,
-0.106, 0.159, -0.982,-0.351, 0.433, -0.056,
-0.106, 0.159, -0.982,-0.266, 0.490, -0.056,
-0.069, 0.133, -0.989,-0.155, 0.375, -0.087,
-0.097, 0.114, -0.989,-0.287, 0.287, -0.087,
-0.916, -0.402, 0,-0.351, 0.433, 0.056,
-0.916, -0.402, 0,-0.351, 0.433, -0.056,
-0.916, -0.402, 0,-0.287, 0.287, -0.087,
-0.916, -0.402, 0,-0.287, 0.287, 0.087,
-0.556, 0.831, 0,-0.351, 0.433, 0.056,
-0.556, 0.831, 0,-0.266, 0.490, 0.056,
-0.556, 0.831, 0,-0.266, 0.490, -0.056,
-0.556, 0.831, 0,-0.351, 0.433, -0.056,
-0.106, 0.159, 0.982,-0.266, 0.490, 0.056,
-0.106, 0.159, 0.982,-0.351, 0.433, 0.056,
-0.097, 0.114, 0.989,-0.287, 0.287, 0.087,
-0.069, 0.133, 0.989,-0.155, 0.375, 0.087,
1, -0.021, 0, 0.159, 0.534, -0.056,
1, -0.021, 0, 0.159, 0.534, 0.056,
1, -0.021, 0, 0.155, 0.375, 0.087,
1, -0.021, 0, 0.155, 0.375, -0.087,
0.037, 0.187, -0.982, 0.058, 0.554, -0.056,
0.037, 0.187, -0.982, 0.159, 0.534, -0.056,
0.046, 0.143, -0.989, 0.155, 0.375, -0.087,
0.012, 0.149, -0.989, 0, 0.406, -0.087,
-0.932, 0.363, 0, 0.058, 0.554, 0.056,
-0.932, 0.363, 0, 0.058, 0.554, -0.056,
-0.932, 0.363, 0, 0, 0.406, -0.087,
-0.932, 0.363, 0, 0, 0.406, 0.087,
0.195, 0.981, 0, 0.058, 0.554, 0.056,
0.195, 0.981, 0, 0.159, 0.534, 0.056,
0.195, 0.981, 0, 0.159, 0.534, -0.056,
0.195, 0.981, 0, 0.058, 0.554, -0.056,
0.037, 0.187, 0.982, 0.159, 0.534, 0.056,
0.037, 0.187, 0.982, 0.058, 0.554, 0.056,
0.012, 0.149, 0.989, 0, 0.406, 0.087,
0.046, 0.143, 0.989, 0.155, 0.375, 0.087,
0.692, -0.722, 0, 0.490, 0.266, -0.056,
0.692, -0.722, 0, 0.490, 0.266, 0.056,
0.692, -0.722, 0, 0.375, 0.155, 0.087,
0.692, -0.722, 0, 0.375, 0.155, -0.087,
0.159, 0.106, -0.982, 0.433, 0.351, -0.056,
0.159, 0.106, -0.982, 0.490, 0.266, -0.056,
0.133, 0.069, -0.989, 0.375, 0.155, -0.087,
0.114, 0.097, -0.989, 0.287, 0.287, -0.087,
-0.402, 0.916, 0, 0.433, 0.351, 0.056,
-0.402, 0.916, 0, 0.433, 0.351, -0.056,
-0.402, 0.916, 0, 0.287, 0.287, -0.087,
-0.402, 0.916, 0, 0.287, 0.287, 0.087,
0.831, 0.556, 0, 0.433, 0.351, 0.056,
0.831, 0.556, 0, 0.490, 0.266, 0.056,
0.831, 0.556, 0, 0.490, 0.266, -0.056,
0.831, 0.556, 0, 0.433, 0.351, -0.056,
0.159, 0.106, 0.982, 0.490, 0.266, 0.056,
0.159, 0.106, 0.982, 0.433, 0.351, 0.056,
0.114, 0.097, 0.989, 0.287, 0.287, 0.087,
0.133, 0.069, 0.989, 0.375, 0.155, 0.087]
module.exports = Geom

View File

@ -9,7 +9,7 @@ module.exports =
name: "test"
size: [11,11,11]
player:
coordinates: [5,5,0]
coordinates: [5,5,0]
exits: [
name: "exit"
active: 0
@ -21,7 +21,6 @@ module.exports =
{Gear,Generator,MotorCylinder,MotorGear,Face} = require '../items'
world.addObjectAtPos new Gear(Face.Z), 6, 5, 0
return
world.addObjectAtPos new Gear(Face.Z), 4, 5, 0
world.addObjectAtPos new Gear(Face.Z), 5, 6, 0
world.addObjectAtPos new Gear(Face.Z), 5, 4, 0
@ -60,3 +59,24 @@ module.exports =
world.addObjectAtPos new Gear(Face.Y), 4, 7, 1
world.addObjectAtPos new Gear(Face.Y), 4, 7, 3
world.addObjectAtPos new Gear(Face.Y), 6, 7, 1
world.addObjectAtPos new Gear(Face.X), 3, 6, 2
world.addObjectAtPos new Gear(Face.X), 3, 4, 2
world.addObjectAtPos new Gear(Face.X), 3, 5, 3
world.addObjectAtPos new Gear(Face.X), 3, 5, 1
world.addObjectAtPos new Gear(Face.X), 3, 6, 3
world.addObjectAtPos new Gear(Face.X), 3, 4, 1
world.addObjectAtPos new Gear(Face.X), 3, 4, 3
world.addObjectAtPos new Gear(Face.X), 3, 6, 1
world.addObjectAtPos new Gear(Face.NX), 7, 6, 2
world.addObjectAtPos new Gear(Face.NX), 7, 4, 2
world.addObjectAtPos new Gear(Face.NX), 7, 5, 3
world.addObjectAtPos new Gear(Face.NX), 7, 5, 1
world.addObjectAtPos new Gear(Face.NX), 7, 6, 3
world.addObjectAtPos new Gear(Face.NX), 7, 4, 1
world.addObjectAtPos new Gear(Face.NX), 7, 4, 3
world.addObjectAtPos new Gear(Face.NX), 7, 6, 1

BIN
img/shot02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 KiB