diff --git a/coffee/cage.coffee b/coffee/cage.coffee index 97f8021..02f1344 100644 --- a/coffee/cage.coffee +++ b/coffee/cage.coffee @@ -4,28 +4,15 @@ # 000 000 000 000 000 000 # 0000000 000 000 0000000 00000000 -log = require '/Users/kodi/s/ko/js/tools/log' +log = require '/Users/kodi/s/ko/js/tools/log' +Material = require './material' class Cage - @cageMat = new THREE.MeshPhongMaterial - color: 0x880000 - side: THREE.FrontSide - shading: THREE.SmoothShading - shininess: 10 - emissive: 0x880000 - emissiveIntensity: 0.02 - - @rasterMat = new THREE.MeshPhongMaterial - color: 0x880000 - side: THREE.FrontSide - shading: THREE.SmoothShading - shininess: 20 - constructor: (@size, gap) -> Cage.gap = gap geom = Cage.wallTiles @size, 'inside', 0 - @raster = new THREE.Mesh geom, Cage.rasterMat + @raster = new THREE.Mesh geom, Material.raster @raster.translateX -0.5 @raster.translateY -0.5 @raster.translateZ -0.5 @@ -33,7 +20,7 @@ class Cage world.scene.add @raster geom = Cage.wallTiles @size, 'inside', Cage.gap - @cage = new THREE.Mesh geom, Cage.cageMat + @cage = new THREE.Mesh geom, Material.plate @cage.translateX -0.5 @cage.translateY -0.5 @cage.translateZ -0.5 diff --git a/coffee/generator.coffee b/coffee/generator.coffee index 2d9fe6f..f1bdbbc 100644 --- a/coffee/generator.coffee +++ b/coffee/generator.coffee @@ -4,10 +4,10 @@ # 000 000 000 000 0000 000 000 000 000 000 000 000 000 000 000 # 0000000 00000000 000 000 00000000 000 000 000 000 000 0000000 000 000 -Gear = require './gear' -Geom = require './geom' -Cage = require './cage' -Wire = require './wire' +Gear = require './gear' +Geom = require './geom' +Wire = require './wire' +Material = require './material' class Generator extends Gear @@ -15,8 +15,8 @@ class Generator extends Gear super face createMesh: -> - @mesh = new THREE.Mesh Geom.generator(), Cage.cageMat - @mesh.add new THREE.Mesh Geom.gear(), Cage.rasterMat + @mesh = new THREE.Mesh Geom.generator(), Material.plate + @mesh.add new THREE.Mesh Geom.gear(), Material.gear @mesh.receiveShadow = true activateWires: -> diff --git a/coffee/geom.coffee b/coffee/geom.coffee index 36cc962..eced1ce 100644 --- a/coffee/geom.coffee +++ b/coffee/geom.coffee @@ -29,22 +29,22 @@ class Geom positions = new Float32Array triangles*9 normals = new Float32Array triangles*9 pi = -1 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip1 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip2 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip3 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip4 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip5 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip6 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip7 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip8 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip9 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip10 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip11 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip12 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip13 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip14 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip15 - pi = @quadStrip positions, normals, pi, @cylinderQuadStrip16 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip1 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip2 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip3 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip4 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip5 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip6 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip7 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip8 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip9 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip10 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip11 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip12 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip13 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip14 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip15 + pi = @quadStrip positions, normals, pi, @cylinderQuadStrip16 geom = new THREE.BufferGeometry geom.addAttribute 'position', new THREE.BufferAttribute positions, 3 geom.addAttribute 'normal', new THREE.BufferAttribute normals, 3 @@ -124,6 +124,12 @@ class Geom geom.translate 0,0,0.4 geom + # 000000000 00000000 000 0000000 000 000 0000000 000 00000000 0000000 + # 000 000 000 000 000 000 0000 000 000 000 000 000 + # 000 0000000 000 000000000 000 0 000 000 0000 000 0000000 0000000 + # 000 000 000 000 000 000 000 0000 000 000 000 000 000 + # 000 000 000 000 000 000 000 000 0000000 0000000 00000000 0000000 + @triangleList: (positions, normals, pi, triangles) -> numTrias = triangles.length/9 for t in [0...numTrias] @@ -139,6 +145,12 @@ class Geom positions[pi+=1] = triangles[ti+jj+i] normals[pi] = n[i] pi + + # 0000000 000 000 0000000 0000000 0000000 + # 000 000 000 000 000 000 000 000 000 + # 000 00 00 000 000 000000000 000 000 0000000 + # 000 0000 000 000 000 000 000 000 000 + # 00000 00 0000000 000 000 0000000 0000000 @quadList: (positions, normals, pi, quads) -> numQuads = quads.length/12 @@ -179,51 +191,23 @@ class Geom # 000 000 0000000 0000000 0000000 00000000 000 000 @kolbenQuads = [ - -0.1, -0.25, 0.5, - -0.1, 0.25, 0.5, - -0.25, 0.1, 0.5, - -0.25, -0.1, 0.5, - 0.25, -0.1, 0.5, - 0.25, 0.1, 0.5, - 0.1, 0.25, 0.5, - 0.1, -0.25, 0.5, - -0.1, 0.25, 0.5, - -0.1, -0.25, 0.5, - 0.1, -0.25, 0.5, - 0.1, 0.25, 0.5, - -0.1, 0.25, 0, - -0.1, -0.25, 0, - -0.25, -0.1, 0, - -0.25, 0.1, 0, - 0.25, 0.1, 0, - 0.25, -0.1, 0, - 0.1, -0.25, 0, - 0.1, 0.25, 0, - -0.1, -0.25, 0, - -0.1, 0.25, 0, - 0.1, 0.25, 0, - 0.1, -0.25, 0, + -0.1, -0.25, 0.5, -0.1, 0.25, 0.5, -0.25, 0.1, 0.5, -0.25, -0.1, 0.5, + 0.25, -0.1, 0.5, 0.25, 0.1, 0.5, 0.1, 0.25, 0.5, 0.1, -0.25, 0.5, + -0.1, 0.25, 0.5, -0.1, -0.25, 0.5, 0.1, -0.25, 0.5, 0.1, 0.25, 0.5, + -0.1, 0.25, 0, -0.1, -0.25, 0, -0.25, -0.1, 0, -0.25, 0.1, 0, + 0.25, 0.1, 0, 0.25, -0.1, 0, 0.1, -0.25, 0, 0.1, 0.25, 0, + -0.1, -0.25, 0, -0.1, 0.25, 0, 0.1, 0.25, 0, 0.1, -0.25, 0, ] @kolbenQuadStrip = [ - 0.1, 0.25, 0, - 0.1, 0.25, 0.5, - 0.25, 0.1, 0, - 0.25, 0.1, 0.5, - 0.25, -0.1, 0, - 0.25, -0.1, 0.5, - 0.1, -0.25, 0, - 0.1, -0.25, 0.5, - -0.1, -0.25, 0, - -0.1, -0.25, 0.5, - -0.25, -0.1, 0, - -0.25, -0.1, 0.5, - -0.25, 0.1, 0, - -0.25, 0.1, 0.5, - -0.1, 0.25, 0, - -0.1, 0.25, 0.5, - 0.1, 0.25, 0, - 0.1, 0.25, 0.5, + 0.1, 0.25, 0, 0.1, 0.25, 0.5, 0.25, 0.1, 0, 0.25, 0.1, 0.5, + 0.25, -0.1, 0, 0.25, -0.1, 0.5, + 0.1, -0.25, 0, 0.1, -0.25, 0.5, + -0.1, -0.25, 0, -0.1, -0.25, 0.5, + -0.25, -0.1, 0, -0.25, -0.1, 0.5, + -0.25, 0.1, 0, -0.25, 0.1, 0.5, + -0.1, 0.25, 0, -0.1, 0.25, 0.5, + 0.1, 0.25, 0, 0.1, 0.25, 0.5, ] # 0000000 000 000 000 000 000 000 0000000 00000000 00000000 @@ -233,324 +217,164 @@ class Geom # 0000000 000 0000000 000 000 000 0000000 00000000 000 000 @cylinderQuadStrip1 = [ - -0.118, 0.284, 0.215, - -0.207, 0.499, 0.215, - 0.118, 0.284, 0.215, - 0.207, 0.499, 0.215, - 0.285, 0.117, 0.215, - 0.500, 0.206, 0.215, - 0.285, -0.119, 0.215, - 0.500, -0.208, 0.215, - 0.118, -0.285, 0.215, - 0.207, -0.501, 0.215, - -0.118, -0.285, 0.215, - -0.207, -0.501, 0.215, - -0.285, -0.119, 0.215, - -0.500, -0.208, 0.215, - -0.285, 0.117, 0.215, - -0.500, 0.206, 0.215, - -0.118, 0.284, 0.215, - -0.207, 0.499, 0.215, + -0.118, 0.284, 0.215, -0.207, 0.499, 0.215, 0.118, 0.284, 0.215, 0.207, 0.499, 0.215, + 0.285, 0.117, 0.215, 0.500, 0.206, 0.215, + 0.285, -0.119, 0.215, 0.500, -0.208, 0.215, + 0.118, -0.285, 0.215, 0.207, -0.501, 0.215, + -0.118, -0.285, 0.215, -0.207, -0.501, 0.215, + -0.285, -0.119, 0.215, -0.500, -0.208, 0.215, + -0.285, 0.117, 0.215, -0.500, 0.206, 0.215, + -0.118, 0.284, 0.215, -0.207, 0.499, 0.215, ] @cylinderQuadStrip2 = [ - 0.118, 0.284, 0.315, - 0.118, 0.284, 0.215, - 0.285, 0.117, 0.315, - 0.285, 0.117, 0.215, - 0.285, -0.119, 0.315, - 0.285, -0.119, 0.215, - 0.118, -0.285, 0.315, - 0.118, -0.285, 0.215, - -0.118, -0.285, 0.315, - -0.118, -0.285, 0.215, - -0.285, -0.119, 0.315, - -0.285, -0.119, 0.215, - -0.285, 0.117, 0.315, - -0.285, 0.117, 0.215, - -0.118, 0.284, 0.315, - -0.118, 0.284, 0.215, - 0.118, 0.284, 0.315, - 0.118, 0.284, 0.215, + 0.118, 0.284, 0.315, 0.118, 0.284, 0.215, 0.285, 0.117, 0.315, 0.285, 0.117, 0.215, + 0.285, -0.119, 0.315, 0.285, -0.119, 0.215, + 0.118, -0.285, 0.315, 0.118, -0.285, 0.215, + -0.118, -0.285, 0.315, -0.118, -0.285, 0.215, + -0.285, -0.119, 0.315, -0.285, -0.119, 0.215, + -0.285, 0.117, 0.315, -0.285, 0.117, 0.215, + -0.118, 0.284, 0.315, -0.118, 0.284, 0.215, + 0.118, 0.284, 0.315, 0.118, 0.284, 0.215, ] @cylinderQuadStrip3 = [ - 0.207, 0.499, 0.315, - 0.118, 0.284, 0.315, - 0.500, 0.206, 0.315, - 0.285, 0.117, 0.315, - 0.500, -0.208, 0.315, - 0.285, -0.119, 0.315, - 0.207, -0.501, 0.315, - 0.118, -0.285, 0.315, - -0.207, -0.501, 0.315, - -0.118, -0.285, 0.315, - -0.500, -0.208, 0.315, - -0.285, -0.119, 0.315, - -0.500, 0.206, 0.315, - -0.285, 0.117, 0.315, - -0.207, 0.499, 0.315, - -0.118, 0.284, 0.315, - 0.207, 0.499, 0.315, - 0.118, 0.284, 0.315, + 0.207, 0.499, 0.315, 0.118, 0.284, 0.315, 0.500, 0.206, 0.315, 0.285, 0.117, 0.315, + 0.500, -0.208, 0.315, 0.285, -0.119, 0.315, + 0.207, -0.501, 0.315, 0.118, -0.285, 0.315, + -0.207, -0.501, 0.315, -0.118, -0.285, 0.315, + -0.500, -0.208, 0.315, -0.285, -0.119, 0.315, + -0.500, 0.206, 0.315, -0.285, 0.117, 0.315, + -0.207, 0.499, 0.315, -0.118, 0.284, 0.315, + 0.207, 0.499, 0.315, 0.118, 0.284, 0.315, ] @cylinderQuadStrip4 = [ - -0.207, 0.499, 0.215, - -0.207, 0.499, 0.315, - 0.207, 0.499, 0.215, - 0.207, 0.499, 0.315, - 0.500, 0.206, 0.215, - 0.500, 0.206, 0.315, - 0.500, -0.208, 0.215, - 0.500, -0.208, 0.315, - 0.207, -0.501, 0.215, - 0.207, -0.501, 0.315, - -0.207, -0.501, 0.215, - -0.207, -0.501, 0.315, - -0.500, -0.208, 0.215, - -0.500, -0.208, 0.315, - -0.500, 0.206, 0.215, - -0.500, 0.206, 0.315, - -0.207, 0.499, 0.215, - -0.207, 0.499, 0.315, + -0.207, 0.499, 0.215, -0.207, 0.499, 0.315, 0.207, 0.499, 0.215, 0.207, 0.499, 0.315, + 0.500, 0.206, 0.215, 0.500, 0.206, 0.315, + 0.500, -0.208, 0.215, 0.500, -0.208, 0.315, + 0.207, -0.501, 0.215, 0.207, -0.501, 0.315, + -0.207, -0.501, 0.215, -0.207, -0.501, 0.315, + -0.500, -0.208, 0.215, -0.500, -0.208, 0.315, + -0.500, 0.206, 0.215, -0.500, 0.206, 0.315, + -0.207, 0.499, 0.215, -0.207, 0.499, 0.315, ] @cylinderQuadStrip5 = [ - -0.118, 0.284, 0.397, - -0.207, 0.499, 0.397, - 0.118, 0.284, 0.397, - 0.207, 0.499, 0.397, - 0.285, 0.117, 0.397, - 0.500, 0.206, 0.397, - 0.285, -0.119, 0.397, - 0.500, -0.208, 0.397, - 0.118, -0.285, 0.397, - 0.207, -0.501, 0.397, - -0.118, -0.285, 0.397, - -0.207, -0.501, 0.397, - -0.285, -0.119, 0.397, - -0.500, -0.208, 0.397, - -0.285, 0.117, 0.397, - -0.500, 0.206, 0.397, - -0.118, 0.284, 0.397, - -0.207, 0.499, 0.397, + -0.118, 0.284, 0.397, -0.207, 0.499, 0.397, 0.118, 0.284, 0.397, 0.207, 0.499, 0.397, + 0.285, 0.117, 0.397, 0.500, 0.206, 0.397, + 0.285, -0.119, 0.397, 0.500, -0.208, 0.397, + 0.118, -0.285, 0.397, 0.207, -0.501, 0.397, + -0.118, -0.285, 0.397, -0.207, -0.501, 0.397, + -0.285, -0.119, 0.397, -0.500, -0.208, 0.397, + -0.285, 0.117, 0.397, -0.500, 0.206, 0.397, + -0.118, 0.284, 0.397, -0.207, 0.499, 0.397, ] @cylinderQuadStrip6 = [ - 0.118, 0.284, 0.497, - 0.118, 0.284, 0.397, - 0.285, 0.117, 0.497, - 0.285, 0.117, 0.397, - 0.285, -0.119, 0.497, - 0.285, -0.119, 0.397, - 0.118, -0.285, 0.497, - 0.118, -0.285, 0.397, - -0.118, -0.285, 0.497, - -0.118, -0.285, 0.397, - -0.285, -0.119, 0.497, - -0.285, -0.119, 0.397, - -0.285, 0.117, 0.497, - -0.285, 0.117, 0.397, - -0.118, 0.284, 0.497, - -0.118, 0.284, 0.397, - 0.118, 0.284, 0.497, - 0.118, 0.284, 0.397, + 0.118, 0.284, 0.497, 0.118, 0.284, 0.397, 0.285, 0.117, 0.497, 0.285, 0.117, 0.397, + 0.285, -0.119, 0.497, 0.285, -0.119, 0.397, + 0.118, -0.285, 0.497, 0.118, -0.285, 0.397, + -0.118, -0.285, 0.497, -0.118, -0.285, 0.397, + -0.285, -0.119, 0.497, -0.285, -0.119, 0.397, + -0.285, 0.117, 0.497, -0.285, 0.117, 0.397, + -0.118, 0.284, 0.497, -0.118, 0.284, 0.397, + 0.118, 0.284, 0.497, 0.118, 0.284, 0.397, ] @cylinderQuadStrip7 = [ - 0.207, 0.499, 0.497, - 0.118, 0.284, 0.497, - 0.500, 0.206, 0.497, - 0.285, 0.117, 0.497, - 0.500, -0.208, 0.497, - 0.285, -0.119, 0.497, - 0.207, -0.501, 0.497, - 0.118, -0.285, 0.497, - -0.207, -0.501, 0.497, - -0.118, -0.285, 0.497, - -0.500, -0.208, 0.497, - -0.285, -0.119, 0.497, - -0.500, 0.206, 0.497, - -0.285, 0.117, 0.497, - -0.207, 0.499, 0.497, - -0.118, 0.284, 0.497, - 0.207, 0.499, 0.497, - 0.118, 0.284, 0.497, + 0.207, 0.499, 0.497, 0.118, 0.284, 0.497, 0.500, 0.206, 0.497, 0.285, 0.117, 0.497, + 0.500, -0.208, 0.497, 0.285, -0.119, 0.497, + 0.207, -0.501, 0.497, 0.118, -0.285, 0.497, + -0.207, -0.501, 0.497, -0.118, -0.285, 0.497, + -0.500, -0.208, 0.497, -0.285, -0.119, 0.497, + -0.500, 0.206, 0.497, -0.285, 0.117, 0.497, + -0.207, 0.499, 0.497, -0.118, 0.284, 0.497, + 0.207, 0.499, 0.497, 0.118, 0.284, 0.497, ] @cylinderQuadStrip8 = [ - -0.207, 0.499, 0.397, - -0.207, 0.499, 0.497, - 0.207, 0.499, 0.397, - 0.207, 0.499, 0.497, - 0.500, 0.206, 0.397, - 0.500, 0.206, 0.497, - 0.500, -0.208, 0.397, - 0.500, -0.208, 0.497, - 0.207, -0.501, 0.397, - 0.207, -0.501, 0.497, - -0.207, -0.501, 0.397, - -0.207, -0.501, 0.497, - -0.500, -0.208, 0.397, - -0.500, -0.208, 0.497, - -0.500, 0.206, 0.397, - -0.500, 0.206, 0.497, - -0.207, 0.499, 0.397, - -0.207, 0.499, 0.497, + -0.207, 0.499, 0.397, -0.207, 0.499, 0.497, 0.207, 0.499, 0.397, 0.207, 0.499, 0.497, + 0.500, 0.206, 0.397, 0.500, 0.206, 0.497, + 0.500, -0.208, 0.397, 0.500, -0.208, 0.497, + 0.207, -0.501, 0.397, 0.207, -0.501, 0.497, + -0.207, -0.501, 0.397, -0.207, -0.501, 0.497, + -0.500, -0.208, 0.397, -0.500, -0.208, 0.497, + -0.500, 0.206, 0.397, -0.500, 0.206, 0.497, + -0.207, 0.499, 0.397, -0.207, 0.499, 0.497, ] @cylinderQuadStrip9 = [ - -0.208, 0.498, 0.050, - -0.208, 0.498, 0.133, - 0.206, 0.499, 0.050, - 0.206, 0.499, 0.133, - 0.499, 0.207, 0.050, - 0.499, 0.207, 0.133, - 0.500, -0.207, 0.050, - 0.500, -0.207, 0.133, - 0.208, -0.500, 0.050, - 0.208, -0.500, 0.133, - -0.206, -0.501, 0.050, - -0.206, -0.501, 0.133, - -0.499, -0.209, 0.050, - -0.499, -0.209, 0.133, - -0.500, 0.205, 0.050, - -0.500, 0.205, 0.133, - -0.208, 0.498, 0.050, - -0.208, 0.498, 0.133, + -0.208, 0.498, 0.050, -0.208, 0.498, 0.133, 0.206, 0.499, 0.050, 0.206, 0.499, 0.133, + 0.499, 0.207, 0.050, 0.499, 0.207, 0.133, + 0.500, -0.207, 0.050, 0.500, -0.207, 0.133, + 0.208, -0.500, 0.050, 0.208, -0.500, 0.133, + -0.206, -0.501, 0.050, -0.206, -0.501, 0.133, + -0.499, -0.209, 0.050, -0.499, -0.209, 0.133, + -0.500, 0.205, 0.050, -0.500, 0.205, 0.133, + -0.208, 0.498, 0.050, -0.208, 0.498, 0.133, ] @cylinderQuadStrip10 = [ - 0.148, 0.360, -0.116, - 0.206, 0.499, 0.050, - 0.360, 0.149, -0.116, - 0.499, 0.207, 0.050, - 0.360, -0.149, -0.116, - 0.500, -0.207, 0.050, - 0.150, -0.361, -0.116, - 0.208, -0.500, 0.050, - -0.148, -0.361, -0.116, - -0.206, -0.501, 0.050, - -0.360, -0.151, -0.116, - -0.499, -0.209, 0.050, - -0.360, 0.147, -0.116, - -0.500, 0.205, 0.050, - -0.150, 0.359, -0.116, - -0.208, 0.498, 0.050, - 0.148, 0.360, -0.116, - 0.206, 0.499, 0.050, + 0.148, 0.360, -0.116, 0.206, 0.499, 0.050, 0.360, 0.149, -0.116, 0.499, 0.207, 0.050, + 0.360, -0.149, -0.116, 0.500, -0.207, 0.050, + 0.150, -0.361, -0.116, 0.208, -0.500, 0.050, + -0.148, -0.361, -0.116, -0.206, -0.501, 0.050, + -0.360, -0.151, -0.116, -0.499, -0.209, 0.050, + -0.360, 0.147, -0.116, -0.500, 0.205, 0.050, + -0.150, 0.359, -0.116, -0.208, 0.498, 0.050, + 0.148, 0.360, -0.116, 0.206, 0.499, 0.050, ] @cylinderQuadStrip11 = [ - 0.206, 0.499, -0.327, - 0.148, 0.360, -0.327, - 0.499, 0.207, -0.327, - 0.360, 0.149, -0.327, - 0.500, -0.207, -0.327, - 0.361, -0.149, -0.327, - 0.208, -0.500, -0.327, - 0.150, -0.361, -0.327, - -0.206, -0.501, -0.327, - -0.148, -0.362, -0.327, - -0.499, -0.209, -0.327, - -0.360, -0.151, -0.327, - -0.500, 0.205, -0.327, - -0.361, 0.148, -0.327, - -0.208, 0.498, -0.327, - -0.150, 0.359, -0.327, - 0.206, 0.499, -0.327, - 0.148, 0.360, -0.327, + 0.206, 0.499, -0.327, 0.148, 0.360, -0.327, 0.499, 0.207, -0.327, 0.360, 0.149, -0.327, + 0.500, -0.207, -0.327, 0.361, -0.149, -0.327, + 0.208, -0.500, -0.327, 0.150, -0.361, -0.327, + -0.206, -0.501, -0.327, -0.148, -0.362, -0.327, + -0.499, -0.209, -0.327, -0.360, -0.151, -0.327, + -0.500, 0.205, -0.327, -0.361, 0.148, -0.327, + -0.208, 0.498, -0.327, -0.150, 0.359, -0.327, + 0.206, 0.499, -0.327, 0.148, 0.360, -0.327, ] @cylinderQuadStrip12 = [ - 0.148, 0.360, -0.327, - 0.148, 0.360, -0.116, - 0.360, 0.149, -0.327, - 0.360, 0.149, -0.116, - 0.361, -0.149, -0.327, - 0.360, -0.149, -0.116, - 0.150, -0.361, -0.327, - 0.150, -0.361, -0.116, - -0.148, -0.362, -0.327, - -0.148, -0.361, -0.116, - -0.360, -0.151, -0.327, - -0.360, -0.151, -0.116, - -0.361, 0.148, -0.327, - -0.360, 0.147, -0.116, - -0.150, 0.359, -0.327, - -0.150, 0.359, -0.116, - 0.148, 0.360, -0.327, - 0.148, 0.360, -0.116, + 0.148, 0.360, -0.327, 0.148, 0.360, -0.116, 0.360, 0.149, -0.327, 0.360, 0.149, -0.116, + 0.361, -0.149, -0.327, 0.360, -0.149, -0.116, + 0.150, -0.361, -0.327, 0.150, -0.361, -0.116, + -0.148, -0.362, -0.327, -0.148, -0.361, -0.116, + -0.360, -0.151, -0.327, -0.360, -0.151, -0.116, + -0.361, 0.148, -0.327, -0.360, 0.147, -0.116, + -0.150, 0.359, -0.327, -0.150, 0.359, -0.116, + 0.148, 0.360, -0.327, 0.148, 0.360, -0.116, ] @cylinderQuadStrip13 = [ - 0.206, 0.499, -0.494, - 0.206, 0.499, -0.327, - 0.499, 0.207, -0.494, - 0.499, 0.207, -0.327, - 0.500, -0.207, -0.494, - 0.500, -0.207, -0.327, - 0.208, -0.500, -0.494, - 0.208, -0.500, -0.327, - -0.206, -0.501, -0.494, - -0.206, -0.501, -0.327, - -0.499, -0.209, -0.494, - -0.499, -0.209, -0.327, - -0.500, 0.205, -0.494, - -0.500, 0.205, -0.327, - -0.208, 0.498, -0.494, - -0.208, 0.498, -0.327, - 0.206, 0.499, -0.494, - 0.206, 0.499, -0.327, + 0.206, 0.499, -0.494, 0.206, 0.499, -0.327, 0.499, 0.207, -0.494, 0.499, 0.207, -0.327, + 0.500, -0.207, -0.494, 0.500, -0.207, -0.327, + 0.208, -0.500, -0.494, 0.208, -0.500, -0.327, + -0.206, -0.501, -0.494, -0.206, -0.501, -0.327, + -0.499, -0.209, -0.494, -0.499, -0.209, -0.327, + -0.500, 0.205, -0.494, -0.500, 0.205, -0.327, + -0.208, 0.498, -0.494, -0.208, 0.498, -0.327, + 0.206, 0.499, -0.494, 0.206, 0.499, -0.327, ] @cylinderQuadStrip14 = [ - -0.119, 0.284, -0.494, - -0.208, 0.498, -0.494, - 0.118, 0.285, -0.494, - 0.206, 0.499, -0.494, - 0.285, 0.118, -0.494, - 0.499, 0.207, -0.494, - 0.286, -0.118, -0.494, - 0.500, -0.207, -0.494, - 0.119, -0.286, -0.494, - 0.208, -0.500, -0.494, - -0.118, -0.287, -0.494, - -0.206, -0.501, -0.494, - -0.285, -0.120, -0.494, - -0.499, -0.209, -0.494, - -0.286, 0.117, -0.494, - -0.500, 0.205, -0.494, - -0.119, 0.284, -0.494, - -0.208, 0.498, -0.494, + -0.119, 0.284, -0.494, -0.208, 0.498, -0.494, 0.118, 0.285, -0.494, 0.206, 0.499, -0.494, + 0.285, 0.118, -0.494, 0.499, 0.207, -0.494, + 0.286, -0.118, -0.494, 0.500, -0.207, -0.494, + 0.119, -0.286, -0.494, 0.208, -0.500, -0.494, + -0.118, -0.287, -0.494, -0.206, -0.501, -0.494, + -0.285, -0.120, -0.494, -0.499, -0.209, -0.494, + -0.286, 0.117, -0.494, -0.500, 0.205, -0.494, + -0.119, 0.284, -0.494, -0.208, 0.498, -0.494, ] @cylinderQuadStrip15 = [ - 0.118, 0.285, 0.133, - 0.118, 0.285, -0.494, - 0.285, 0.118, 0.133, - 0.285, 0.118, -0.494, - 0.286, -0.119, 0.133, - 0.286, -0.118, -0.494, - 0.119, -0.286, 0.133, - 0.119, -0.286, -0.494, - -0.118, -0.287, 0.133, - -0.118, -0.287, -0.494, - -0.285, -0.120, 0.133, - -0.285, -0.120, -0.494, - -0.286, 0.117, 0.133, - -0.286, 0.117, -0.494, - -0.119, 0.284, 0.133, - -0.119, 0.284, -0.494, - 0.118, 0.285, 0.133, - 0.118, 0.285, -0.494, + 0.118, 0.285, 0.133, 0.118, 0.285, -0.494, 0.285, 0.118, 0.133, 0.285, 0.118, -0.494, + 0.286, -0.119, 0.133, 0.286, -0.118, -0.494, + 0.119, -0.286, 0.133, 0.119, -0.286, -0.494, + -0.118, -0.287, 0.133, -0.118, -0.287, -0.494, + -0.285, -0.120, 0.133, -0.285, -0.120, -0.494, + -0.286, 0.117, 0.133, -0.286, 0.117, -0.494, + -0.119, 0.284, 0.133, -0.119, 0.284, -0.494, + 0.118, 0.285, 0.133, 0.118, 0.285, -0.494, ] @cylinderQuadStrip16 = [ - 0.206, 0.499, 0.133, - 0.118, 0.285, 0.133, - 0.499, 0.207, 0.133, - 0.285, 0.118, 0.133, - 0.500, -0.207, 0.133, - 0.286, -0.119, 0.133, - 0.208, -0.500, 0.133, - 0.119, -0.286, 0.133, - -0.206, -0.501, 0.133, - -0.118, -0.287, 0.133, - -0.499, -0.209, 0.133, - -0.285, -0.120, 0.133, - -0.500, 0.205, 0.133, - -0.286, 0.117, 0.133, - -0.208, 0.498, 0.133, - -0.119, 0.284, 0.133, - 0.206, 0.499, 0.133, - 0.118, 0.285, 0.133, + 0.206, 0.499, 0.133, 0.118, 0.285, 0.133, 0.499, 0.207, 0.133, 0.285, 0.118, 0.133, + 0.500, -0.207, 0.133, 0.286, -0.119, 0.133, + 0.208, -0.500, 0.133, 0.119, -0.286, 0.133, + -0.206, -0.501, 0.133, -0.118, -0.287, 0.133, + -0.499, -0.209, 0.133, -0.285, -0.120, 0.133, + -0.500, 0.205, 0.133, -0.286, 0.117, 0.133, + -0.208, 0.498, 0.133, -0.119, 0.284, 0.133, + 0.206, 0.499, 0.133, 0.118, 0.285, 0.133, ] # 00 00 0000000 000000000 0000000 00000000 @@ -567,60 +391,17 @@ class Geom ] @motorQuads = [ - -0.5, -0.5, -0.5, - 0.5, -0.5, -0.5, - 0.5, -0.5, 0.027, - -0.5, -0.5, 0.027, - - -0.5, 0.5, -0.5, - -0.5, -0.5, -0.5, - -0.5, -0.5, 0.027, - -0.5, 0.5, 0.027, - - 0.5, 0.5, -0.5, - -0.5, 0.5, -0.5, - -0.5, 0.5, 0.027, - 0.5, 0.5, 0.027, - - 0.5, -0.5, -0.5, - 0.5, 0.5, -0.5, - 0.5, 0.5, 0.027, - 0.5, -0.5, 0.027, - - -0.5, -0.167, 0.29, - -0.5, 0.167, 0.29, - -0.5, 0.5, 0.027, - -0.5, -0.5, 0.027, - - -0.5, -0.167, 0.29, - 0.5, -0.167, 0.29, - 0.5, 0.167, 0.29, - -0.5, 0.167, 0.29, - - -0.167, -0.5, 0.29, - 0.167, -0.5, 0.29, - 0.5, -0.167, 0.29, - -0.5, -0.167, 0.29, - - 0.167, -0.5, 0.29, - -0.167, -0.5, 0.29, - -0.5, -0.5, 0.027, - 0.5, -0.5, 0.027, - - -0.167, 0.5, 0.29, - 0.167, 0.5, 0.29, - 0.5, 0.5, 0.027, - -0.5, 0.5, 0.027, - - 0.167, 0.5, 0.29, - -0.167, 0.5, 0.29, - -0.5, 0.167, 0.29, - 0.5, 0.167, 0.29, - - 0.5, -0.167, 0.29, - 0.5, -0.5, 0.027, - 0.5, 0.5, 0.027, - 0.5, 0.167, 0.290 + -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.027, -0.5, -0.5, 0.027, + -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.027, -0.5, 0.5, 0.027, + 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.027, 0.5, 0.5, 0.027, + 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.027, 0.5, -0.5, 0.027, + -0.5, -0.167, 0.29, -0.5, 0.167, 0.29, -0.5, 0.5, 0.027, -0.5, -0.5, 0.027, + -0.5, -0.167, 0.29, 0.5, -0.167, 0.29, 0.5, 0.167, 0.29, -0.5, 0.167, 0.29, + -0.167, -0.5, 0.29, 0.167, -0.5, 0.29, 0.5, -0.167, 0.29, -0.5, -0.167, 0.29, + 0.167, -0.5, 0.29, -0.167, -0.5, 0.29, -0.5, -0.5, 0.027, 0.5, -0.5, 0.027, + -0.167, 0.5, 0.29, 0.167, 0.5, 0.29, 0.5, 0.5, 0.027, -0.5, 0.5, 0.027, + 0.167, 0.5, 0.29, -0.167, 0.5, 0.29, -0.5, 0.167, 0.29, 0.5, 0.167, 0.29, + 0.5, -0.167, 0.29, 0.5, -0.5, 0.027, 0.5, 0.5, 0.027, 0.5, 0.167, 0.290 ] # 0000000 00000000 000 000 00000000 00000000 0000000 000000000 0000000 00000000 @@ -630,281 +411,118 @@ class Geom # 0000000 00000000 000 000 00000000 000 000 000 000 000 0000000 000 000 @generatorQuads = [ - 0.39, 0.330, 0.155, - 0.5, 0.05, 0.155, - 0.5, 0.05, -0.155, - 0.39, 0.330, -0.155, - -0.39, -0.33, 0.155, - -0.5, -0.038, 0.155, - -0.5, -0.038, -0.155, - -0.39, -0.33, -0.155, - 0.5, -0.038, 0.155, - 0.39, -0.33, 0.155, - 0.39, -0.33, -0.155, - 0.5, -0.038, -0.155, - -0.33, 0.39, 0.155, - -0.05, 0.5, 0.155, - -0.05, 0.5, -0.155, - -0.33, 0.39, -0.155, - 0.33, -0.380, 0.155, - 0.05, -0.5, 0.155, - 0.05, -0.5, -0.155, - 0.33, -0.380, -0.155, - 0.05, 0.5, 0.155, - 0.33, 0.39, 0.155, - 0.33, 0.39, -0.155, - 0.05, 0.5, -0.155, - -0.5, 0.05, 0.155, - -0.39, 0.330, 0.155, - -0.39, 0.330, -0.155, - -0.5, 0.05, -0.155, - -0.05, -0.5, 0.155, - -0.33, -0.380, 0.155, - -0.33, -0.380, -0.155, - -0.05, -0.5, -0.155, - - 0.33, 0.05, 0.077, - 0.27, 0.2, 0.077, - 0.27, 0.2, -0.077, - 0.33, 0.05, -0.077, - - -0.33, -0.05, 0.077, - -0.27, -0.2, 0.077, - -0.27, -0.2, -0.077, - -0.33, -0.05, -0.077, - - 0.27, -0.2, 0.077, - 0.33, -0.05, 0.077, - 0.33, -0.05, -0.077, - 0.27, -0.2, -0.077, - - -0.05, 0.33, 0.077, - -0.2, 0.27, 0.077, - -0.2, 0.27, -0.077, - -0.05, 0.33, -0.077, - - 0.05, -0.33, 0.077, - 0.2, -0.27, 0.077, - 0.2, -0.27, -0.077, - 0.05, -0.33, -0.077, - - 0.2, 0.27, 0.077, - 0.05, 0.33, 0.077, - 0.05, 0.33, -0.077, - 0.2, 0.27, -0.077, - - -0.27, 0.2, 0.077, - -0.33, 0.05, 0.077, - -0.33, 0.05, -0.077, - -0.27, 0.2, -0.077, - - -0.2, -0.27, 0.077, - -0.05, -0.33, 0.077, - -0.05, -0.33, -0.077, - -0.2, -0.27, -0.077, - - 0.100, 0, 0.5, - 0.071, 0.071, 0.5, - 0, 0.100, 0.5, - 0.071, -0.071, 0.5, - -0.100, 0, 0.5, - -0.071, -0.071, 0.5, - 0, -0.100, 0.5, - -0.071, 0.071, 0.5, - 0.071, -0.071, 0.5, - 0, 0.100, 0.5, - -0.071, 0.071, 0.5, - 0, -0.100, 0.5, - 0.2, 0, -0.077, - 0.141, -0.141, -0.077, - 0, -0.2, -0.077, - 0.141, 0.141, -0.077, - -0.2, 0, -0.077, - -0.141, 0.141, -0.077, - 0, 0.2, -0.077, - -0.141, -0.141, -0.077, - 0.141, 0.141, -0.077, - 0, -0.2, -0.077, - -0.141, -0.141, -0.077, - 0, 0.2, -0.077, + 0.39, 0.330, 0.155, 0.5, 0.05, 0.155, 0.5, 0.05, -0.155, 0.39, 0.330, -0.155, + -0.39, -0.33, 0.155, -0.5, -0.038, 0.155, -0.5, -0.038, -0.155, -0.39, -0.33, -0.155, + 0.5, -0.038, 0.155, 0.39, -0.33, 0.155, 0.39, -0.33, -0.155, 0.5, -0.038, -0.155, + -0.33, 0.39, 0.155, -0.05, 0.5, 0.155, -0.05, 0.5, -0.155, -0.33, 0.39, -0.155, + 0.33, -0.380, 0.155, 0.05, -0.5, 0.155, 0.05, -0.5, -0.155, 0.33, -0.380, -0.155, + 0.05, 0.5, 0.155, 0.33, 0.39, 0.155, 0.33, 0.39, -0.155, 0.05, 0.5, -0.155, + -0.5, 0.05, 0.155, -0.39, 0.330, 0.155, -0.39, 0.330, -0.155, -0.5, 0.05, -0.155, + -0.05, -0.5, 0.155, -0.33, -0.380, 0.155, -0.33, -0.380, -0.155, -0.05, -0.5, -0.155, + 0.33, 0.05, 0.077, 0.27, 0.2, 0.077, 0.27, 0.2, -0.077, 0.33, 0.05, -0.077, + -0.33, -0.05, 0.077, -0.27, -0.2, 0.077, -0.27, -0.2, -0.077, -0.33, -0.05, -0.077, + 0.27, -0.2, 0.077, 0.33, -0.05, 0.077, 0.33, -0.05, -0.077, 0.27, -0.2, -0.077, + -0.05, 0.33, 0.077, -0.2, 0.27, 0.077, -0.2, 0.27, -0.077, -0.05, 0.33, -0.077, + 0.05, -0.33, 0.077, 0.2, -0.27, 0.077, 0.2, -0.27, -0.077, 0.05, -0.33, -0.077, + 0.2, 0.27, 0.077, 0.05, 0.33, 0.077, 0.05, 0.33, -0.077, 0.2, 0.27, -0.077, + -0.27, 0.2, 0.077, -0.33, 0.05, 0.077, -0.33, 0.05, -0.077, -0.27, 0.2, -0.077, + -0.2, -0.27, 0.077, -0.05, -0.33, 0.077, -0.05, -0.33, -0.077, -0.2, -0.27, -0.077, + 0.100, 0, 0.5, 0.071, 0.071, 0.5, 0, 0.100, 0.5, 0.071, -0.071, 0.5, + -0.100, 0, 0.5, -0.071, -0.071, 0.5, 0, -0.100, 0.5, -0.071, 0.071, 0.5, + 0.071, -0.071, 0.5, 0, 0.100, 0.5, -0.071, 0.071, 0.5, 0, -0.100, 0.5, + 0.2, 0, -0.077, 0.141, -0.141, -0.077, 0, -0.2, -0.077, 0.141, 0.141, -0.077, + -0.2, 0, -0.077, -0.141, 0.141, -0.077, 0, 0.2, -0.077, -0.141, -0.141, -0.077, + 0.141, 0.141, -0.077, 0, -0.2, -0.077, -0.141, -0.141, -0.077, 0, 0.2, -0.077, ] @generatorQuadStrip1 = [ - 0.141, 0.141, -0.077, - 0.141, 0.141, 0.077, - 0.200, 0, -0.077, - 0.200, 0, 0.077, - 0.141, -0.141, -0.077, - 0.141, -0.141, 0.077, - 0, -0.200, -0.077, - 0, -0.200, 0.077, - -0.141, -0.141, -0.077, - -0.141, -0.141, 0.077, - -0.200, 0, -0.077, - -0.200, 0, 0.077, - -0.141, 0.141, -0.077, - -0.141, 0.141, 0.077, - 0, 0.200, -0.077, - 0, 0.200, 0.077, - 0.141, 0.141, -0.077, - 0.141, 0.141, 0.077, + 0.141, 0.141, -0.077, 0.141, 0.141, 0.077, 0.200, 0, -0.077, 0.200, 0, 0.077, + 0.141, -0.141, -0.077, 0.141, -0.141, 0.077, + 0, -0.200, -0.077, 0, -0.200, 0.077, + -0.141, -0.141, -0.077, -0.141, -0.141, 0.077, + -0.200, 0, -0.077, -0.200, 0, 0.077, + -0.141, 0.141, -0.077, -0.141, 0.141, 0.077, + 0, 0.200, -0.077, 0, 0.200, 0.077, + 0.141, 0.141, -0.077, 0.141, 0.141, 0.077, ] @generatorQuadStrip2 = [ - 0, 0.200, 0.077, - 0, 0.059, 0.220, - 0.141, 0.141, 0.077, - 0.042, 0.042, 0.220, - 0.200, 0, 0.077, - 0.059, 0, 0.220, - 0.141, -0.141, 0.077, - 0.042, -0.042, 0.220, - 0, -0.200, 0.077, - 0, -0.059, 0.220, - -0.141, -0.141, 0.077, - -0.042, -0.042, 0.220, - -0.200, 0, 0.077, - -0.059, 0, 0.220, - -0.141, 0.141, 0.077, - -0.042, 0.042, 0.220, - 0, 0.200, 0.077, - 0, 0.059, 0.220, + 0, 0.200, 0.077, 0, 0.059, 0.220, 0.141, 0.141, 0.077, 0.042, 0.042, 0.220, + 0.200, 0, 0.077, 0.059, 0, 0.220, + 0.141, -0.141, 0.077, 0.042, -0.042, 0.220, + 0, -0.200, 0.077, 0, -0.059, 0.220, + -0.141, -0.141, 0.077, -0.042, -0.042, 0.220, + -0.200, 0, 0.077, -0.059, 0, 0.220, + -0.141, 0.141, 0.077, -0.042, 0.042, 0.220, + 0, 0.200, 0.077, 0, 0.059, 0.220, ] @generatorQuadStrip3 = [ - 0, 0.100, 0.354, - 0, 0.100, 0.5, - 0.071, 0.071, 0.354, - 0.071, 0.071, 0.5, - 0.100, 0, 0.354, - 0.100, 0, 0.5, - 0.071, -0.071, 0.354, - 0.071, -0.071, 0.5, - 0, -0.100, 0.354, - 0, -0.100, 0.5, - -0.071, -0.071, 0.354, - -0.071, -0.071, 0.5, - -0.100, 0, 0.354, - -0.100, 0, 0.5, - -0.071, 0.071, 0.354, - -0.071, 0.071, 0.5, - 0, 0.100, 0.354, - 0, 0.100, 0.5, + 0, 0.100, 0.354, 0, 0.100, 0.5, 0.071, 0.071, 0.354, 0.071, 0.071, 0.5, + 0.100, 0, 0.354, 0.100, 0, 0.5, + 0.071, -0.071, 0.354, 0.071, -0.071, 0.5, + 0, -0.100, 0.354, 0, -0.100, 0.5, + -0.071, -0.071, 0.354, -0.071, -0.071, 0.5, + -0.100, 0, 0.354, -0.100, 0, 0.5, + -0.071, 0.071, 0.354, -0.071, 0.071, 0.5, + 0, 0.100, 0.354, 0, 0.100, 0.5, ] @generatorQuadStrip4 = [ - 0.042, 0.042, 0.220, - 0.071, 0.071, 0.354, - 0.059, 0, 0.220, - 0.100, 0, 0.354, - 0.042, -0.042, 0.220, - 0.071, -0.071, 0.354, - 0, -0.059, 0.220, - 0, -0.100, 0.354, - -0.042, -0.042, 0.220, - -0.071, -0.071, 0.354, - -0.059, 0, 0.220, - -0.100, 0, 0.354, - -0.042, 0.042, 0.220, - -0.071, 0.071, 0.354, - 0, 0.059, 0.220, - 0, 0.100, 0.354, - 0.042, 0.042, 0.220, - 0.071, 0.071, 0.354, + 0.042, 0.042, 0.220, 0.071, 0.071, 0.354, 0.059, 0, 0.220, 0.100, 0, 0.354, + 0.042, -0.042, 0.220, 0.071, -0.071, 0.354, + 0, -0.059, 0.220, 0, -0.100, 0.354, + -0.042, -0.042, 0.220, -0.071, -0.071, 0.354, + -0.059, 0, 0.220, -0.100, 0, 0.354, + -0.042, 0.042, 0.220, -0.071, 0.071, 0.354, + 0, 0.059, 0.220, 0, 0.100, 0.354, + 0.042, 0.042, 0.220, 0.071, 0.071, 0.354, ] @generatorQuadStrip5 = [ - -0.05, -0.5, 0.155, - -0.05, -0.33, 0.077, - -0.33, -0.380, 0.155, - -0.2, -0.27, 0.077, - -0.33, -0.380, -0.155, - -0.2, -0.27, -0.077, - -0.05, -0.5, -0.155, - -0.05, -0.33, -0.077, - -0.05, -0.5, 0.155, - -0.05, -0.33, 0.077, + -0.05, -0.5, 0.155, -0.05, -0.33, 0.077, -0.33, -0.380, 0.155, -0.2, -0.27, 0.077, + -0.33, -0.380, -0.155, -0.2, -0.27, -0.077, + -0.05, -0.5, -0.155, -0.05, -0.33, -0.077, + -0.05, -0.5, 0.155, -0.05, -0.33, 0.077, ] @generatorQuadStrip6 = [ - -0.5, 0.05, 0.155, - -0.33, 0.05, 0.077, - -0.39, 0.330, 0.155, - -0.27, 0.2, 0.077, - -0.39, 0.330, -0.155, - -0.27, 0.2, -0.077, - -0.5, 0.05, -0.155, - -0.33, 0.05, -0.077, - -0.5, 0.05, 0.155, - -0.33, 0.05, 0.077, + -0.5, 0.05, 0.155, -0.33, 0.05, 0.077, -0.39, 0.330, 0.155, -0.27, 0.2, 0.077, + -0.39, 0.330, -0.155, -0.27, 0.2, -0.077, + -0.5, 0.05, -0.155, -0.33, 0.05, -0.077, + -0.5, 0.05, 0.155, -0.33, 0.05, 0.077, ] # @generatorQuadStrip7 = [ - 0.05, 0.5, 0.155, - 0.05, 0.33, 0.077, - 0.33, 0.39, 0.155, - 0.2, 0.27, 0.077, - 0.33, 0.39, -0.155, - 0.2, 0.27, -0.077, - 0.05, 0.5, -0.155, - 0.05, 0.33, -0.077, - 0.05, 0.5, 0.155, - 0.05, 0.33, 0.077, + 0.05, 0.5, 0.155, 0.05, 0.33, 0.077, 0.33, 0.39, 0.155, 0.2, 0.27, 0.077, + 0.33, 0.39, -0.155, 0.2, 0.27, -0.077, + 0.05, 0.5, -0.155, 0.05, 0.33, -0.077, + 0.05, 0.5, 0.155, 0.05, 0.33, 0.077, ] @generatorQuadStrip8 = [ - 0.33, -0.380, 0.155, - 0.2, -0.27, 0.077, - 0.05, -0.5, 0.155, - 0.05, -0.33, 0.077, - 0.05, -0.5, -0.155, - 0.05, -0.33, -0.077, - 0.33, -0.380, -0.155, - 0.2, -0.27, -0.077, - 0.33, -0.380, 0.155, - 0.2, -0.27, 0.077, + 0.33, -0.380, 0.155, 0.2, -0.27, 0.077, 0.05, -0.5, 0.155, 0.05, -0.33, 0.077, + 0.05, -0.5, -0.155, 0.05, -0.33, -0.077, + 0.33, -0.380, -0.155, 0.2, -0.27, -0.077, + 0.33, -0.380, 0.155, 0.2, -0.27, 0.077, ] @generatorQuadStrip9 = [ - -0.33, 0.39, 0.155, - -0.2, 0.27, 0.077, - -0.05, 0.5, 0.155, - -0.05, 0.33, 0.077, - -0.05, 0.5, -0.155, - -0.05, 0.33, -0.077, - -0.33, 0.39, -0.155, - -0.2, 0.27, -0.077, - -0.33, 0.39, 0.155, - -0.2, 0.27, 0.077, + -0.33, 0.39, 0.155, -0.2, 0.27, 0.077, -0.05, 0.5, 0.155, -0.05, 0.33, 0.077, + -0.05, 0.5, -0.155, -0.05, 0.33, -0.077, + -0.33, 0.39, -0.155, -0.2, 0.27, -0.077, + -0.33, 0.39, 0.155, -0.2, 0.27, 0.077, ] @generatorQuadStrip10 = [ - 0.5, -0.038, 0.155, - 0.33, -0.05, 0.077, - 0.39, -0.33, 0.155, - 0.27, -0.2, 0.077, - 0.39, -0.33, -0.155, - 0.27, -0.2, -0.077, - 0.5, -0.038, -0.155, - 0.33, -0.05, -0.077, - 0.5, -0.038, 0.155, - 0.33, -0.05, 0.077, + 0.5, -0.038, 0.155, 0.33, -0.05, 0.077, 0.39, -0.33, 0.155, 0.27, -0.2, 0.077, + 0.39, -0.33, -0.155, 0.27, -0.2, -0.077, + 0.5, -0.038, -0.155, 0.33, -0.05, -0.077, + 0.5, -0.038, 0.155, 0.33, -0.05, 0.077, ] @generatorQuadStrip11 = [ - -0.39, -0.33, 0.155, - -0.27, -0.2, 0.077, - -0.5, -0.038, 0.155, - -0.33, -0.05, 0.077, - -0.5, -0.038, -0.155, - -0.33, -0.05, -0.077, - -0.39, -0.33, -0.155, - -0.27, -0.2, -0.077, - -0.39, -0.33, 0.155, - -0.27, -0.2, 0.077, + -0.39, -0.33, 0.155, -0.27, -0.2, 0.077, -0.5, -0.038, 0.155, -0.33, -0.05, 0.077, + -0.5, -0.038, -0.155, -0.33, -0.05, -0.077, + -0.39, -0.33, -0.155, -0.27, -0.2, -0.077, + -0.39, -0.33, 0.155, -0.27, -0.2, 0.077, ] @generatorQuadStrip12 = [ - 0.39, 0.330, 0.155, - 0.27, 0.2, 0.077, - 0.5, 0.05, 0.155, - 0.33, 0.05, 0.077, - 0.5, 0.05, -0.155, - 0.33, 0.05, -0.077, - 0.39, 0.330, -0.155, - 0.27, 0.2, -0.077, - 0.39, 0.330, 0.155, - 0.27, 0.2, 0.077, + 0.39, 0.330, 0.155, 0.27, 0.2, 0.077, 0.5, 0.05, 0.155, 0.33, 0.05, 0.077, + 0.5, 0.05, -0.155, 0.33, 0.05, -0.077, + 0.39, 0.330, -0.155, 0.27, 0.2, -0.077, + 0.39, 0.330, 0.155, 0.27, 0.2, 0.077, ] # 000 000 0000000 000 000 000 00000000 @@ -914,130 +532,62 @@ class Geom # 0 000 000 0000000 0 00000000 @valveQuads = [ - 0.100, 0, 0.5, - 0.071, 0.071, 0.5, - 0, 0.100, 0.5, - 0.071, -0.071, 0.5, - -0.100, 0, 0.5, - -0.071, -0.071, 0.5, - 0, -0.100, 0.5, - -0.071, 0.071, 0.5, - 0.071, -0.071, 0.5, - 0, 0.100, 0.5, - -0.071, 0.071, 0.5, - 0, -0.100, 0.5, - 0.100, 0, -0.5, - 0.071, -0.071, -0.5, - 0, -0.100, -0.5, - 0.071, 0.071, -0.5, - -0.100, 0, -0.5, - -0.071, 0.071, -0.5, - 0, 0.100, -0.5, - -0.071, -0.071, -0.5, - 0.071, 0.071, -0.5, - 0, -0.100, -0.5, - -0.071, -0.071, -0.5, - 0, 0.100, -0.5, + 0.100, 0, 0.5, 0.071, 0.071, 0.5, 0, 0.100, 0.5, 0.071, -0.071, 0.5, + -0.100, 0, 0.5, -0.071, -0.071, 0.5, 0, -0.100, 0.5, -0.071, 0.071, 0.5, + 0.071, -0.071, 0.5, 0, 0.100, 0.5, -0.071, 0.071, 0.5, 0, -0.100, 0.5, + 0.100, 0, -0.5, 0.071, -0.071, -0.5, 0, -0.100, -0.5, 0.071, 0.071, -0.5, + -0.100, 0, -0.5, -0.071, 0.071, -0.5, 0, 0.100, -0.5, -0.071, -0.071, -0.5, + 0.071, 0.071, -0.5, 0, -0.100, -0.5, -0.071, -0.071, -0.5, 0, 0.100, -0.5, ] @valveQuadStrip1 = [ - 0.071, 0.071, -0.346, - 0.042, 0.042, -0.220, - 0.100, 0, -0.346, - 0.059, 0, -0.220, - 0.071, -0.071, -0.346, - 0.042, -0.042, -0.220, - 0, -0.100, -0.346, - 0, -0.059, -0.220, - -0.071, -0.071, -0.346, - -0.042, -0.042, -0.220, - -0.100, 0, -0.346, - -0.059, 0, -0.220, - -0.071, 0.071, -0.346, - -0.042, 0.042, -0.220, - 0, 0.100, -0.346, - 0, 0.059, -0.220, - 0.071, 0.071, -0.346, - 0.042, 0.042, -0.220 + 0.071, 0.071, -0.346, 0.042, 0.042, -0.220, 0.100, 0, -0.346, 0.059, 0, -0.220, + 0.071, -0.071, -0.346, 0.042, -0.042, -0.220, + 0, -0.100, -0.346, 0, -0.059, -0.220, + -0.071, -0.071, -0.346, -0.042, -0.042, -0.220, + -0.100, 0, -0.346, -0.059, 0, -0.220, + -0.071, 0.071, -0.346, -0.042, 0.042, -0.220, + 0, 0.100, -0.346, 0, 0.059, -0.220, + 0.071, 0.071, -0.346, 0.042, 0.042, -0.220 ] @valveQuadStrip2 = [ - 0.042, 0.042, -0.220, - 0.042, 0.042, 0.220, - 0.059, 0, -0.220, - 0.059, 0, 0.220, - 0.042, -0.042, -0.220, - 0.042, -0.042, 0.220, - 0, -0.059, -0.220, - 0, -0.059, 0.220, - -0.042, -0.042, -0.220, - -0.042, -0.042, 0.220, - -0.059, 0, -0.220, - -0.059, 0, 0.220, - -0.042, 0.042, -0.220, - -0.042, 0.042, 0.220, - 0, 0.059, -0.220, - 0, 0.059, 0.220, - 0.042, 0.042, -0.220, - 0.042, 0.042, 0.220 + 0.042, 0.042, -0.220, 0.042, 0.042, 0.220, 0.059, 0, -0.220, 0.059, 0, 0.220, + 0.042, -0.042, -0.220, 0.042, -0.042, 0.220, + 0, -0.059, -0.220, 0, -0.059, 0.220, + -0.042, -0.042, -0.220, -0.042, -0.042, 0.220, + -0.059, 0, -0.220, -0.059, 0, 0.220, + -0.042, 0.042, -0.220, -0.042, 0.042, 0.220, + 0, 0.059, -0.220, 0, 0.059, 0.220, + 0.042, 0.042, -0.220, 0.042, 0.042, 0.220 ] @valveQuadStrip3 = [ - 0.071, 0.071, -0.5, - 0.071, 0.071, -0.346, - 0.100, 0, -0.5, - 0.100, 0, -0.346, - 0.071, -0.071, -0.5, - 0.071, -0.071, -0.346, - 0, -0.100, -0.5, - 0, -0.100, -0.346, - -0.071, -0.071, -0.5, - -0.071, -0.071, -0.346, - -0.100, 0, -0.5, - -0.100, 0, -0.346, - -0.071, 0.071, -0.5, - -0.071, 0.071, -0.346, - 0, 0.100, -0.5, - 0, 0.100, -0.346, - 0.071, 0.071, -0.5, - 0.071, 0.071, -0.346, + 0.071, 0.071, -0.5, 0.071, 0.071, -0.346, 0.100, 0, -0.5, 0.100, 0, -0.346, + 0.071, -0.071, -0.5, 0.071, -0.071, -0.346, + 0, -0.100, -0.5, 0, -0.100, -0.346, + -0.071, -0.071, -0.5, -0.071, -0.071, -0.346, + -0.100, 0, -0.5, -0.100, 0, -0.346, + -0.071, 0.071, -0.5, -0.071, 0.071, -0.346, + 0, 0.100, -0.5, 0, 0.100, -0.346, + 0.071, 0.071, -0.5, 0.071, 0.071, -0.346, ] @valveQuadStrip4 = [ - 0, 0.100, 0.354, - 0, 0.100, 0.5, - 0.071, 0.071, 0.354, - 0.071, 0.071, 0.5, - 0.100, 0, 0.354, - 0.100, 0, 0.5, - 0.071, -0.071, 0.354, - 0.071, -0.071, 0.5, - 0, -0.100, 0.354, - 0, -0.100, 0.5, - -0.071, -0.071, 0.354, - -0.071, -0.071, 0.5, - -0.100, 0, 0.354, - -0.100, 0, 0.5, - -0.071, 0.071, 0.354, - -0.071, 0.071, 0.5, - 0, 0.100, 0.354, - 0, 0.100, 0.5, + 0, 0.100, 0.354, 0, 0.100, 0.5, 0.071, 0.071, 0.354, 0.071, 0.071, 0.5, + 0.100, 0, 0.354, 0.100, 0, 0.5, + 0.071, -0.071, 0.354, 0.071, -0.071, 0.5, + 0, -0.100, 0.354, 0, -0.100, 0.5, + -0.071, -0.071, 0.354, -0.071, -0.071, 0.5, + -0.100, 0, 0.354, -0.100, 0, 0.5, + -0.071, 0.071, 0.354, -0.071, 0.071, 0.5, + 0, 0.100, 0.354, 0, 0.100, 0.5, ] @valveQuadStrip5 = [ - 0.042, 0.042, 0.220, - 0.071, 0.071, 0.354, - 0.059, 0, 0.220, - 0.100, 0, 0.354, - 0.042, -0.042, 0.220, - 0.071, -0.071, 0.354, - 0, -0.059, 0.220, - 0, -0.100, 0.354, - -0.042, -0.042, 0.220, - -0.071, -0.071, 0.354, - -0.059, 0, 0.220, - -0.100, 0, 0.354, - -0.042, 0.042, 0.220, - -0.071, 0.071, 0.354, - 0, 0.059, 0.220, - 0, 0.100, 0.354, - 0.042, 0.042, 0.220, - 0.071, 0.071, 0.354, + 0.042, 0.042, 0.220, 0.071, 0.071, 0.354, 0.059, 0, 0.220, 0.100, 0, 0.354, + 0.042, -0.042, 0.220, 0.071, -0.071, 0.354, + 0, -0.059, 0.220, 0, -0.100, 0.354, + -0.042, -0.042, 0.220, -0.071, -0.071, 0.354, + -0.059, 0, 0.220, -0.100, 0, 0.354, + -0.042, 0.042, 0.220, -0.071, 0.071, 0.354, + 0, 0.059, 0.220, 0, 0.100, 0.354, + 0.042, 0.042, 0.220, 0.071, 0.071, 0.354, ] # 0000000 00000000 0000000 00000000 @@ -1047,309 +597,111 @@ class Geom # 0000000 00000000 000 000 000 000 @gearQuadStrip1 = [ - 0.208, -0.086, 0.111, - 0.375, -0.155, 0.087, - 0.226, 0, 0.111, - 0.406, 0, 0.087, - 0.208, 0.086, 0.111, - 0.375, 0.155, 0.087, - 0.160, 0.160, 0.111, - 0.287, 0.287, 0.087, - 0.086, 0.208, 0.111, - 0.155, 0.375, 0.087, - 0, 0.226, 0.111, - 0, 0.406, 0.087, - -0.086, 0.208, 0.111, - -0.155, 0.375, 0.087, - -0.160, 0.160, 0.111, - -0.287, 0.287, 0.087, - -0.208, 0.086, 0.111, - -0.375, 0.155, 0.087, - -0.226, 0, 0.111, - -0.406, 0, 0.087, - -0.208, -0.086, 0.111, - -0.375, -0.155, 0.087, - -0.160, -0.160, 0.111, - -0.287, -0.287, 0.087, - -0.086, -0.208, 0.111, - -0.155, -0.375, 0.087, - 0, -0.226, 0.111, - 0, -0.406, 0.087, - 0.086, -0.208, 0.111, - 0.155, -0.375, 0.087, - 0.160, -0.160, 0.111, - 0.287, -0.287, 0.087, - 0.208, -0.086, 0.111, - 0.375, -0.155, 0.087, + 0.208, -0.086, 0.111, 0.375, -0.155, 0.087, 0.226, 0, 0.111, 0.406, 0, 0.087, + 0.208, 0.086, 0.111, 0.375, 0.155, 0.087, + 0.160, 0.160, 0.111, 0.287, 0.287, 0.087, + 0.086, 0.208, 0.111, 0.155, 0.375, 0.087, + 0, 0.226, 0.111, 0, 0.406, 0.087, + -0.086, 0.208, 0.111, -0.155, 0.375, 0.087, + -0.160, 0.160, 0.111, -0.287, 0.287, 0.087, + -0.208, 0.086, 0.111, -0.375, 0.155, 0.087, + -0.226, 0, 0.111, -0.406, 0, 0.087, + -0.208, -0.086, 0.111, -0.375, -0.155, 0.087, + -0.160, -0.160, 0.111, -0.287, -0.287, 0.087, + -0.086, -0.208, 0.111, -0.155, -0.375, 0.087, + 0, -0.226, 0.111, 0, -0.406, 0.087, + 0.086, -0.208, 0.111, 0.155, -0.375, 0.087, + 0.160, -0.160, 0.111, 0.287, -0.287, 0.087, + 0.208, -0.086, 0.111, 0.375, -0.155, 0.087, ] @gearQuadStrip2 = [ - 0.226, 0, -0.111, - 0.226, 0, 0.111, - 0.208, 0.086, -0.111, - 0.208, 0.086, 0.111, - 0.160, 0.160, -0.111, - 0.160, 0.160, 0.111, - 0.086, 0.208, -0.111, - 0.086, 0.208, 0.111, - 0, 0.226, -0.111, - 0, 0.226, 0.111, - -0.086, 0.208, -0.111, - -0.086, 0.208, 0.111, - -0.160, 0.160, -0.111, - -0.160, 0.160, 0.111, - -0.208, 0.086, -0.111, - -0.208, 0.086, 0.111, - -0.226, 0, -0.111, - -0.226, 0, 0.111, - -0.208, -0.086, -0.111, - -0.208, -0.086, 0.111, - -0.160, -0.160, -0.111, - -0.160, -0.160, 0.111, - -0.086, -0.208, -0.111, - -0.086, -0.208, 0.111, - 0, -0.226, -0.111, - 0, -0.226, 0.111, - 0.086, -0.208, -0.111, - 0.086, -0.208, 0.111, - 0.160, -0.160, -0.111, - 0.160, -0.160, 0.111, - 0.208, -0.086, -0.111, - 0.208, -0.086, 0.111, - 0.226, 0, -0.111, - 0.226, 0, 0.111, + 0.226, 0, -0.111, 0.226, 0, 0.111, 0.208, 0.086, -0.111, 0.208, 0.086, 0.111, + 0.160, 0.160, -0.111, 0.160, 0.160, 0.111, + 0.086, 0.208, -0.111, 0.086, 0.208, 0.111, + 0, 0.226, -0.111, 0, 0.226, 0.111, + -0.086, 0.208, -0.111, -0.086, 0.208, 0.111, + -0.160, 0.160, -0.111, -0.160, 0.160, 0.111, + -0.208, 0.086, -0.111, -0.208, 0.086, 0.111, + -0.226, 0, -0.111, -0.226, 0, 0.111, + -0.208, -0.086, -0.111, -0.208, -0.086, 0.111, + -0.160, -0.160, -0.111, -0.160, -0.160, 0.111, + -0.086, -0.208, -0.111, -0.086, -0.208, 0.111, + 0, -0.226, -0.111, 0, -0.226, 0.111, + 0.086, -0.208, -0.111, 0.086, -0.208, 0.111, + 0.160, -0.160, -0.111, 0.160, -0.160, 0.111, + 0.208, -0.086, -0.111, 0.208, -0.086, 0.111, + 0.226, 0, -0.111, 0.226, 0, 0.111, ] @gearQuadStrip3 = [ - 0.406, 0, -0.087, - 0.226, 0, -0.111, - 0.375, 0.155, -0.087, - 0.208, 0.086, -0.111, - 0.287, 0.287, -0.087, - 0.160, 0.160, -0.111, - 0.155, 0.375, -0.087, - 0.086, 0.208, -0.111, - 0, 0.406, -0.087, - 0, 0.226, -0.111, - -0.155, 0.375, -0.087, - -0.086, 0.208, -0.111, - -0.287, 0.287, -0.087, - -0.160, 0.160, -0.111, - -0.375, 0.155, -0.087, - -0.208, 0.086, -0.111, - -0.406, 0, -0.087, - -0.226, 0, -0.111, - -0.375, -0.155, -0.087, - -0.208, -0.086, -0.111, - -0.287, -0.287, -0.087, - -0.160, -0.160, -0.111, - -0.155, -0.375, -0.087, - -0.086, -0.208, -0.111, - 0, -0.406, -0.087, - 0, -0.226, -0.111, - 0.155, -0.375, -0.087, - 0.086, -0.208, -0.111, - 0.287, -0.287, -0.087, - 0.160, -0.160, -0.111, - 0.375, -0.155, -0.087, - 0.208, -0.086, -0.111, - 0.406, 0, -0.087, - 0.226, 0, -0.111, + 0.406, 0, -0.087, 0.226, 0, -0.111, 0.375, 0.155, -0.087, 0.208, 0.086, -0.111, + 0.287, 0.287, -0.087, 0.160, 0.160, -0.111, + 0.155, 0.375, -0.087, 0.086, 0.208, -0.111, + 0, 0.406, -0.087, 0, 0.226, -0.111, + -0.155, 0.375, -0.087, -0.086, 0.208, -0.111, + -0.287, 0.287, -0.087, -0.160, 0.160, -0.111, + -0.375, 0.155, -0.087, -0.208, 0.086, -0.111, + -0.406, 0, -0.087, -0.226, 0, -0.111, + -0.375, -0.155, -0.087, -0.208, -0.086, -0.111, + -0.287, -0.287, -0.087, -0.160, -0.160, -0.111, + -0.155, -0.375, -0.087, -0.086, -0.208, -0.111, + 0, -0.406, -0.087, 0, -0.226, -0.111, + 0.155, -0.375, -0.087, 0.086, -0.208, -0.111, + 0.287, -0.287, -0.087, 0.160, -0.160, -0.111, + 0.375, -0.155, -0.087, 0.208, -0.086, -0.111, + 0.406, 0, -0.087, 0.226, 0, -0.111, ] @gearQuads = [ - 0.375, 0.155, 0.087, - 0.406, 0, 0.087, - 0.406, 0, -0.087, - 0.375, 0.155, -0.087, - 0.155, 0.375, 0.087, - 0.287, 0.287, 0.087, - 0.287, 0.287, -0.087, - 0.155, 0.375, -0.087, - -0.155, 0.375, 0.087, - 0, 0.406, 0.087, - 0, 0.406, -0.087, - -0.155, 0.375, -0.087, - -0.375, 0.155, 0.087, - -0.287, 0.287, 0.087, - -0.287, 0.287, -0.087, - -0.375, 0.155, -0.087, - -0.375, -0.155, 0.087, - -0.406, 0, 0.087, - -0.406, 0, -0.087, - -0.375, -0.155, -0.087, - -0.155, -0.375, 0.087, - -0.287, -0.287, 0.087, - -0.287, -0.287, -0.087, - -0.155, -0.375, -0.087, - 0.155, -0.375, 0.087, - 0, -0.406, 0.087, - 0, -0.406, -0.087, - 0.155, -0.375, -0.087, - 0.375, -0.155, 0.087, - 0.287, -0.287, 0.087, - 0.287, -0.287, -0.087, - 0.375, -0.155, -0.087, - 0.534, -0.159, -0.05, - 0.534, -0.159, 0.05, - 0.375, -0.155, 0.087, - 0.375, -0.155, -0.087, - 0.554, -0.058, -0.05, - 0.534, -0.159, -0.05, - 0.375, -0.155, -0.087, - 0.406, 0, -0.087, - 0.554, -0.058, 0.05, - 0.554, -0.058, -0.05, - 0.406, 0, -0.087, - 0.406, 0, 0.087, - 0.554, -0.058, 0.05, - 0.534, -0.159, 0.05, - 0.534, -0.159, -0.05, - 0.554, -0.058, -0.05, - 0.534, -0.159, 0.05, - 0.554, -0.058, 0.05, - 0.406, 0, 0.087, - 0.375, -0.155, 0.087, - 0.266, -0.490, -0.05, - 0.266, -0.490, 0.05, - 0.155, -0.375, 0.087, - 0.155, -0.375, -0.087, - 0.351, -0.433, -0.05, - 0.266, -0.490, -0.05, - 0.155, -0.375, -0.087, - 0.287, -0.287, -0.087, - 0.351, -0.433, 0.05, - 0.351, -0.433, -0.05, - 0.287, -0.287, -0.087, - 0.287, -0.287, 0.087, - 0.351, -0.433, 0.05, - 0.266, -0.490, 0.05, - 0.266, -0.490, -0.05, - 0.351, -0.433, -0.05, - 0.266, -0.490, 0.05, - 0.351, -0.433, 0.05, - 0.287, -0.287, 0.087, - 0.155, -0.375, 0.087, - -0.159, -0.534, -0.05, - -0.159, -0.534, 0.05, - -0.155, -0.375, 0.087, - -0.155, -0.375, -0.087, - -0.058, -0.554, -0.05, - -0.159, -0.534, -0.05, - -0.155, -0.375, -0.087, - 0, -0.406, -0.087, - -0.058, -0.554, 0.05, - -0.058, -0.554, -0.05, - 0, -0.406, -0.087, - 0, -0.406, 0.087, - -0.058, -0.554, 0.05, - -0.159, -0.534, 0.05, - -0.159, -0.534, -0.05, - -0.058, -0.554, -0.05, - -0.159, -0.534, 0.05, - -0.058, -0.554, 0.05, - 0, -0.406, 0.087, - -0.155, -0.375, 0.087, - -0.490, -0.266, -0.05, - -0.490, -0.266, 0.05, - -0.375, -0.155, 0.087, - -0.375, -0.155, -0.087, - -0.433, -0.351, -0.05, - -0.490, -0.266, -0.05, - -0.375, -0.155, -0.087, - -0.287, -0.287, -0.087, - -0.433, -0.351, 0.05, - -0.433, -0.351, -0.05, - -0.287, -0.287, -0.087, - -0.287, -0.287, 0.087, - -0.433, -0.351, 0.05, - -0.490, -0.266, 0.05, - -0.490, -0.266, -0.05, - -0.433, -0.351, -0.05, - -0.490, -0.266, 0.05, - -0.433, -0.351, 0.05, - -0.287, -0.287, 0.087, - -0.375, -0.155, 0.087, - -0.534, 0.159, -0.05, - -0.534, 0.159, 0.05, - -0.375, 0.155, 0.087, - -0.375, 0.155, -0.087, - -0.554, 0.058, -0.05, - -0.534, 0.159, -0.05, - -0.375, 0.155, -0.087, - -0.406, 0, -0.087, - -0.554, 0.058, 0.05, - -0.554, 0.058, -0.05, - -0.406, 0, -0.087, - -0.406, 0, 0.087, - -0.554, 0.058, 0.05, - -0.534, 0.159, 0.05, - -0.534, 0.159, -0.05, - -0.554, 0.058, -0.05, - -0.534, 0.159, 0.05, - -0.554, 0.058, 0.05, - -0.406, 0, 0.087, - -0.375, 0.155, 0.087, - -0.266, 0.490, -0.05, - -0.266, 0.490, 0.05, - -0.155, 0.375, 0.087, - -0.155, 0.375, -0.087, - -0.351, 0.433, -0.05, - -0.266, 0.490, -0.05, - -0.155, 0.375, -0.087, - -0.287, 0.287, -0.087, - -0.351, 0.433, 0.05, - -0.351, 0.433, -0.05, - -0.287, 0.287, -0.087, - -0.287, 0.287, 0.087, - -0.351, 0.433, 0.05, - -0.266, 0.490, 0.05, - -0.266, 0.490, -0.05, - -0.351, 0.433, -0.05, - -0.266, 0.490, 0.05, - -0.351, 0.433, 0.05, - -0.287, 0.287, 0.087, - -0.155, 0.375, 0.087, - 0.159, 0.534, -0.05, - 0.159, 0.534, 0.05, - 0.155, 0.375, 0.087, - 0.155, 0.375, -0.087, - 0.058, 0.554, -0.05, - 0.159, 0.534, -0.05, - 0.155, 0.375, -0.087, - 0, 0.406, -0.087, - 0.058, 0.554, 0.05, - 0.058, 0.554, -0.05, - 0, 0.406, -0.087, - 0, 0.406, 0.087, - 0.058, 0.554, 0.05, - 0.159, 0.534, 0.05, - 0.159, 0.534, -0.05, - 0.058, 0.554, -0.05, - 0.159, 0.534, 0.05, - 0.058, 0.554, 0.05, - 0, 0.406, 0.087, - 0.155, 0.375, 0.087, - 0.490, 0.266, -0.05, - 0.490, 0.266, 0.05, - 0.375, 0.155, 0.087, - 0.375, 0.155, -0.087, - 0.433, 0.351, -0.05, - 0.490, 0.266, -0.05, - 0.375, 0.155, -0.087, - 0.287, 0.287, -0.087, - 0.433, 0.351, 0.05, - 0.433, 0.351, -0.05, - 0.287, 0.287, -0.087, - 0.287, 0.287, 0.087, - 0.433, 0.351, 0.05, - 0.490, 0.266, 0.05, - 0.490, 0.266, -0.05, - 0.433, 0.351, -0.05, - 0.490, 0.266, 0.05, - 0.433, 0.351, 0.05, - 0.287, 0.287, 0.087, - 0.375, 0.155, 0.087 + 0.375, 0.155, 0.087, 0.406, 0, 0.087, 0.406, 0, -0.087, 0.375, 0.155, -0.087, + 0.155, 0.375, 0.087, 0.287, 0.287, 0.087, 0.287, 0.287, -0.087, 0.155, 0.375, -0.087, + -0.155, 0.375, 0.087, 0, 0.406, 0.087, 0, 0.406, -0.087, -0.155, 0.375, -0.087, + -0.375, 0.155, 0.087, -0.287, 0.287, 0.087, -0.287, 0.287, -0.087, -0.375, 0.155, -0.087, + -0.375, -0.155, 0.087, -0.406, 0, 0.087, -0.406, 0, -0.087, -0.375, -0.155, -0.087, + -0.155, -0.375, 0.087, -0.287, -0.287, 0.087, -0.287, -0.287, -0.087, -0.155, -0.375, -0.087, + 0.155, -0.375, 0.087, 0, -0.406, 0.087, 0, -0.406, -0.087, 0.155, -0.375, -0.087, + 0.375, -0.155, 0.087, 0.287, -0.287, 0.087, 0.287, -0.287, -0.087, 0.375, -0.155, -0.087, + 0.534, -0.159, -0.05, 0.534, -0.159, 0.05, 0.375, -0.155, 0.087, 0.375, -0.155, -0.087, + 0.554, -0.058, -0.05, 0.534, -0.159, -0.05, 0.375, -0.155, -0.087, 0.406, 0, -0.087, + 0.554, -0.058, 0.05, 0.554, -0.058, -0.05, 0.406, 0, -0.087, 0.406, 0, 0.087, + 0.554, -0.058, 0.05, 0.534, -0.159, 0.05, 0.534, -0.159, -0.05, 0.554, -0.058, -0.05, + 0.534, -0.159, 0.05, 0.554, -0.058, 0.05, 0.406, 0, 0.087, 0.375, -0.155, 0.087, + 0.266, -0.490, -0.05, 0.266, -0.490, 0.05, 0.155, -0.375, 0.087, 0.155, -0.375, -0.087, + 0.351, -0.433, -0.05, 0.266, -0.490, -0.05, 0.155, -0.375, -0.087, 0.287, -0.287, -0.087, + 0.351, -0.433, 0.05, 0.351, -0.433, -0.05, 0.287, -0.287, -0.087, 0.287, -0.287, 0.087, + 0.351, -0.433, 0.05, 0.266, -0.490, 0.05, 0.266, -0.490, -0.05, 0.351, -0.433, -0.05, + 0.266, -0.490, 0.05, 0.351, -0.433, 0.05, 0.287, -0.287, 0.087, 0.155, -0.375, 0.087, + -0.159, -0.534, -0.05, -0.159, -0.534, 0.05, -0.155, -0.375, 0.087, -0.155, -0.375, -0.087, + -0.058, -0.554, -0.05, -0.159, -0.534, -0.05, -0.155, -0.375, -0.087, 0, -0.406, -0.087, + -0.058, -0.554, 0.05, -0.058, -0.554, -0.05, 0, -0.406, -0.087, 0, -0.406, 0.087, + -0.058, -0.554, 0.05, -0.159, -0.534, 0.05, -0.159, -0.534, -0.05, -0.058, -0.554, -0.05, + -0.159, -0.534, 0.05, -0.058, -0.554, 0.05, 0, -0.406, 0.087, -0.155, -0.375, 0.087, + -0.490, -0.266, -0.05, -0.490, -0.266, 0.05, -0.375, -0.155, 0.087, -0.375, -0.155, -0.087, + -0.433, -0.351, -0.05, -0.490, -0.266, -0.05, -0.375, -0.155, -0.087, -0.287, -0.287, -0.087, + -0.433, -0.351, 0.05, -0.433, -0.351, -0.05, -0.287, -0.287, -0.087, -0.287, -0.287, 0.087, + -0.433, -0.351, 0.05, -0.490, -0.266, 0.05, -0.490, -0.266, -0.05, -0.433, -0.351, -0.05, + -0.490, -0.266, 0.05, -0.433, -0.351, 0.05, -0.287, -0.287, 0.087, -0.375, -0.155, 0.087, + -0.534, 0.159, -0.05, -0.534, 0.159, 0.05, -0.375, 0.155, 0.087, -0.375, 0.155, -0.087, + -0.554, 0.058, -0.05, -0.534, 0.159, -0.05, -0.375, 0.155, -0.087, -0.406, 0, -0.087, + -0.554, 0.058, 0.05, -0.554, 0.058, -0.05, -0.406, 0, -0.087, -0.406, 0, 0.087, + -0.554, 0.058, 0.05, -0.534, 0.159, 0.05, -0.534, 0.159, -0.05, -0.554, 0.058, -0.05, + -0.534, 0.159, 0.05, -0.554, 0.058, 0.05, -0.406, 0, 0.087, -0.375, 0.155, 0.087, + -0.266, 0.490, -0.05, -0.266, 0.490, 0.05, -0.155, 0.375, 0.087, -0.155, 0.375, -0.087, + -0.351, 0.433, -0.05, -0.266, 0.490, -0.05, -0.155, 0.375, -0.087, -0.287, 0.287, -0.087, + -0.351, 0.433, 0.05, -0.351, 0.433, -0.05, -0.287, 0.287, -0.087, -0.287, 0.287, 0.087, + -0.351, 0.433, 0.05, -0.266, 0.490, 0.05, -0.266, 0.490, -0.05, -0.351, 0.433, -0.05, + -0.266, 0.490, 0.05, -0.351, 0.433, 0.05, -0.287, 0.287, 0.087, -0.155, 0.375, 0.087, + 0.159, 0.534, -0.05, 0.159, 0.534, 0.05, 0.155, 0.375, 0.087, 0.155, 0.375, -0.087, + 0.058, 0.554, -0.05, 0.159, 0.534, -0.05, 0.155, 0.375, -0.087, 0, 0.406, -0.087, + 0.058, 0.554, 0.05, 0.058, 0.554, -0.05, 0, 0.406, -0.087, 0, 0.406, 0.087, + 0.058, 0.554, 0.05, 0.159, 0.534, 0.05, 0.159, 0.534, -0.05, 0.058, 0.554, -0.05, + 0.159, 0.534, 0.05, 0.058, 0.554, 0.05, 0, 0.406, 0.087, 0.155, 0.375, 0.087, + 0.490, 0.266, -0.05, 0.490, 0.266, 0.05, 0.375, 0.155, 0.087, 0.375, 0.155, -0.087, + 0.433, 0.351, -0.05, 0.490, 0.266, -0.05, 0.375, 0.155, -0.087, 0.287, 0.287, -0.087, + 0.433, 0.351, 0.05, 0.433, 0.351, -0.05, 0.287, 0.287, -0.087, 0.287, 0.287, 0.087, + 0.433, 0.351, 0.05, 0.490, 0.266, 0.05, 0.490, 0.266, -0.05, 0.433, 0.351, -0.05, + 0.490, 0.266, 0.05, 0.433, 0.351, 0.05, 0.287, 0.287, 0.087, 0.375, 0.155, 0.087 ] module.exports = Geom diff --git a/coffee/levels/test.coffee b/coffee/levels/test.coffee index b6052c5..c5305a1 100644 --- a/coffee/levels/test.coffee +++ b/coffee/levels/test.coffee @@ -18,8 +18,11 @@ module.exports = create: -> s = world.size - {Gear,Generator,MotorCylinder,MotorGear,Face} = require '../items' - # world.addObjectAtPos new Generator(Face.Z), 5, 5, 0 + {Gear,Generator,MotorCylinder,MotorGear,Face,Wall} = require '../items' + world.addObjectAtPos new Generator(Face.Z), 5, 7, 0 + world.addObjectAtPos new Wall(), 6, 7, 0 + world.addObjectAtPos new Wall(), 6, 7, 1 + world.addObjectAtPos new Wall(), 6, 7, 2 world.addObjectAtPos new MotorCylinder(Face.Z), 4, 5, 1 world.addObjectAtPos new MotorGear(Face.Z), 4, 5, 0 diff --git a/coffee/material.coffee b/coffee/material.coffee index 3e38d5f..a57c1b2 100644 --- a/coffee/material.coffee +++ b/coffee/material.coffee @@ -18,7 +18,13 @@ module.exports = side: THREE.FrontSide shading: THREE.SmoothShading shininess: 20 - + + wall: new THREE.MeshPhongMaterial + color: 0x770000 + side: THREE.FrontSide + shading: THREE.SmoothShading + shininess: 10 + plate: new THREE.MeshPhongMaterial color: 0x880000 side: THREE.FrontSide diff --git a/coffee/wall.coffee b/coffee/wall.coffee index 1a76c3d..236c6df 100644 --- a/coffee/wall.coffee +++ b/coffee/wall.coffee @@ -5,37 +5,30 @@ # 000 000 000 000 000 000 # 00 00 000 000 0000000 0000000 -Pos = require './lib/pos' -Item = require './item' -Cage = require './cage' +Pos = require './lib/pos' +Item = require './item' +Cage = require './cage' +Material = require './material' class Wall extends Item - @rasterMat = new THREE.MeshPhongMaterial - color: 0x770000 - side: THREE.FrontSide - shading: THREE.SmoothShading - shininess: 10 - isSpaceEgoistic: -> true - constructor: -> - - geom = Cage.wallTiles new Pos(1,1,1), 'outside', 0 - geom.translate -0.5, -0.5, -0.5 - @raster = new THREE.Mesh geom, Wall.rasterMat + constructor: -> super + + createMesh: -> + geom = new THREE.BoxGeometry 1,1,1 + @raster = new THREE.Mesh geom, Material.wall @raster.receiveShadow = true @raster.castShadow = true geom = Cage.wallTiles new Pos(1,1,1), 'outside', Cage.gap geom.translate -0.5, -0.5, -0.5 - @plates = new THREE.Mesh geom, Cage.cageMat + @plates = new THREE.Mesh geom, Material.plate @plates.receiveShadow = true @mesh = new THREE.Object3D @mesh.add @raster @mesh.add @plates - - super module.exports = Wall