Newer
Older
paths: {
jquery: 'dependencies/jquery-2.1.3',
underscore: 'dependencies/underscore',
backbone: 'dependencies/backbone',
flatUI: 'dependencies/flatUI/js/flat-ui',
fileSaverLib: 'dependencies/loaders/FileSaver.min',
//three
stlLoader: 'dependencies/loaders/STLLoader',
threeModel: 'three/ThreeModel',
threeView: 'three/ThreeView',
fileSaver: 'models/FileSaver',
cubeLattice: 'lattice/CubeLattice',
gikLattice: 'lattice/GIKLattice',
kelvinLattice: 'lattice/KelvinLattice',
octaEdgeLattice: 'lattice/OctaEdgeLattice',
octaFaceLattice: 'lattice/OctaFaceLattice',
octaRotEdgeLattice: 'lattice/OctaRotEdgeLattice',
octaVertexLattice: 'lattice/OctaVertexLattice',
tetraStackedLattice: 'lattice/TetraStackedLattice',
tetraVertexLattice: 'lattice/TetraVertexLattice',
compositeEditorLattice: 'lattice/CompositeEditorLattice',
//baseplane
baseplane: 'baseplane/BasePlane',
squareBaseplane: 'baseplane/SquareBasePlane',
octaBaseplane: 'baseplane/OctaBasePlane',
rotEdgeOctaBaseplane: 'baseplane/RotEdgeOctaBasePlane',
//highlighter
highlighter: 'highlighter/Highlighter',
defaultHighlighter: 'highlighter/DefaultHighlighter',
cubeHighlighter: 'highlighter/CubeHighlighter',
superCellHighlighter: 'highlighter/SuperCellHighlighter',
octaFaceHighlighter: 'highlighter/OctaFaceHighlighter',
truncatedCubeHighlighter: 'highlighter/TruncatedCubeHighlighter',
//cells
cell: 'cells/DMACell',
octaFaceCell: 'cells/OctaFaceCell',
octaEdgeCell: 'cells/OctaEdgeCell',
octaVertexCell: 'cells/OctaVertexCell',
octaRotEdgeCell: 'cells/OctaRotEdgeCell',
truncatedCubeCell: 'cells/TruncatedCubeCell',
kelvinCell: 'cells/KelvinCell',
cubeCell: 'cells/CubeCell',
gikCell: 'cells/GIKCell',
superCell: 'cells/supercells/DMASupercell',
gikSuperCell: 'cells/supercells/GIKSuperCell',
//parts
part: 'parts/DMAPart',
octaFaceTriPart: 'parts/OctaFaceTriPart',
octaEdgeVoxPart: 'parts/OctaEdgeVoxPart',
octaEdgeVoxPartLowPoly: 'parts/OctaEdgeVoxPartLowPoly',
gikPart: 'parts/GIKPart',
gikPartLowPoly: 'parts/GIKPartLowPoly',
mechanicalMaterials: 'materials/MechanicalMaterials',
navbar: 'menus/Navbar',
navViewMenu: 'menus/NavViewMenu',//view dropdown
menuWrapper: 'menus/MenuWrapperView',
menuParent: 'menus/MenuParentView',
latticeMenu: 'menus/LatticeMenuView',
importMenu: 'menus/LatticeMenuView',
partMenu: 'menus/PartMenuView',
scriptMenu: 'menus/ScriptMenuView',
physicsMenu: 'menus/PhysicsMenuView',
materialMenu: 'menus/MaterialMenuView',
optimizeMenu: 'menus/OptimizationMenuView',
assemblerMenu: 'menus/AssemblerMenuView',
camMenu: 'menus/CamMenuView',
animateMenu: 'menus/AnimationMenuView',
octaFaceTrianglePartSTL: '../assets/stls/parts/OctaFaceTrianglePart.stl',
octaEdgeVoxPartSTL: '../assets/stls/parts/OctaEdgeVoxPart.stl',
octaEdgeVoxPartLowPolySTL: '../assets/stls/parts/OctaEdgeVoxPartLowPoly.stl',
gikPartSTL: '../assets/stls/parts/GIKPart.stl',
gikEndPartSTL: '../assets/stls/parts/GIKEndPart.stl',
gikPartLowPolySTL: '../assets/stls/parts/GIKPartLowPoly.stl',
gikEndPartLowPolySTL: '../assets/stls/parts/GIKEndPartLowPoly.stl'
},
orbitControls: {
deps: ['three'],
exports: 'THREE'
},
stlLoader: {
deps: ['three'],
exports: 'THREE'
},
},
flatUI: {
deps: ['jquery']
//require.onError = function (err) {
// console.log(err.requireType);
// console.log(err.requireModules);
// throw err;
//};
require(['appState', 'lattice', 'menuWrapper', 'navbar', 'ribbon', 'threeModel', 'threeView', 'flatUI'],
function(appState, lattice, MenuWrapper, Navbar, Ribbon, three, ThreeView){
new MenuWrapper({model:appState});
new Navbar({model:appState});
new ThreeView({model:three});
// if (lattice.get("connectionType") != "gik") lattice.addCellAtIndex({x:0,y:0,z:0});//add a cell