/** * Created by aghassaei on 8/12/15. */ define(['three'], function(THREE){ return { allMachines:{ handOfGod: { name: "Hand of God", shouldPickUpStock: false, relative: false, camProcesses: ["gcode"], numMaterials: -1//-1 == infinite }, shopbot: { name: "Shopbot", shouldPickUpStock: true, relative: false, camProcesses: ["shopbot", "gcode"], numMaterials: -1 }, oneBitBot: { name: "One Bit Bot", shouldPickUpStock: true, relative: true, camProcesses: ["gcode", "tinyG"] }, stapler: { name: "Dual Head Stapler", shouldPickUpStock: false, relative: false, camProcesses: ["gcode"], numMaterials: 2, translation: {x:11.43,y:-61.93,z:-5.06}, rotation: {x:Math.PI/2,y:0,z:0},//Math.PI/2 scale: 0.7874, components: { xAxis: { name: "X Axis", rotary: false, //minBound //maxBound parent: "yAxis", motionVector: {x:1, y:0, z:0}, stl: { filename: "assets/stls/stapler/xAxis.stl" // offset: {x:0,y:0,z:0}, // scale: 1.0, // rotation: {x:0,y:0,z:0} } }, frame: { name: "Y Axis", rotary: false, //minBound //maxBound parent: "substrate", motionVector: {x:0, y:1, z:0}, stl: { filename: "assets/stls/stapler/yAxis.stl" } }, zAxis: { name: "Z Axis", rotary: false, //minBound //maxBound parent: "xAxis", motionVector: {x:0, y:0, z:1}, stl: { filename: "assets/stls/stapler/zAxis.stl" } }, yAxis: { name: "Frame", rotary: false, //minBound //maxBound parent: "frame", motionVector: {x:0, y:1, z:0}, // isStatic: true, stl: { filename: "assets/stls/stapler/frame.stl" } }, substrate: { name: "Substrate", rotary: true, centerOfRotation: {x:9,y:10.5,z:0},//(5.08mm, 5.715mm) //minBound //maxBound parent: null, motionVector: {x:0, y:0, z:1}, stl: { filename: "assets/stls/stapler/substrate.stl" } } }, stock:{ stock1: { description:{ materialName: "fiberGlass", length: 4 }, name: "Stock 1", parent: "zAxis", translation: {x:0,y:0,z:0} }, stock2: { description:{ materialName: "brass", length: 4 }, name: "Stock 2", parent: "zAxis", translation: {x:26,y:0.236,z:0} } }, lattice:{ scale: 1.27, units: 'mm' }, defaults: { camStrategy: "raster", placementOrder: "XYZ",//used for raster strategy entry camProcess: "gcode", rapidHeight: 30, rapidHeightRelative: true, safeHeight: 4, originPosition: new THREE.Vector3(0,0,0), rapidSpeeds:{xy: 250, z: 250}, feedRate:{xy: 6, z: 6} }, customPost: {} }, mojo:{ name: "Mojo", shouldPickUpStock: false, relative: true, camProcesses: ["gcode"], numMaterials: -1, translation: {x:8.48528,y:8.48528,z:8.48528}, rotation: {x:0,y:0,z:0},//Math.PI/2 scale: 0.083333, components: { frame: { name: "Y Axis", rotary: false, //minBound //maxBound parent: null, motionVector: {x:0, y:1, z:0}, stl: { filename: "assets/stls/mojo/mojo.stl" } } }, stock: {}, defaults:{}, customPost: {} } }, machineTypesForLattice:{ octa:{ face: ["handOfGod"], edgeRot: ["shopbot", "oneBitBot", "handOfGod"], vertex: ["mojo"] }, tetra: { vertex: ["handOfGod"] }, cube:{ face: ["handOfGod"], gik: ["stapler", "handOfGod"] }, truncatedCube:{ face:["handOfGod"] }, kelvin:{ face:["handOfGod"] } }, allJointTypes: { revolute: "Revolute", continuous: "Continuous", prismatic: "Prismatic", fixed: "Fixed", floating: "Floating", planar: "Planar" }, allAssemblyStrategies: { raster: "Raster" }, allCamProcesses: { shopbot: "Shopbot (sbp)", gcode: "G-Code", tinyG: "TinyG (G-Code)" }, allUnitTypes: { inches: "Inches", mm: "mm", um: "Micron" } } });