Skip to content
Snippets Groups Projects
Select Git revision
  • 8f3d4e69c3ccc88f0572a90a367eeaa98e3675c2
  • master default protected
  • LUFA-170418
  • LUFA-151115
  • LUFA-140928
  • LUFA-140302
  • LUFA-130901
  • LUFA-130901-BETA
  • LUFA-130303
  • LUFA-120730
  • LUFA-120730-BETA
  • LUFA-120219
  • LUFA-120219-BETA
  • LUFA-111009
  • LUFA-111009-BETA
  • LUFA-110528
  • LUFA-110528-BETA
17 results

makefile

Blame
  • OctaFaceHighlighter.js 714 B
    /**
     * Created by aghassaei on 6/2/15.
     */
    
    
    define(['underscore', 'backbone', 'threeModel', 'appState', 'lattice', 'cell', 'three', 'highlighter'],
        function(_, Backbone, three, appState, lattice, DMACell, THREE, Highlighter){
    
        return Highlighter.extend({
    
            _makeGeometry: function(){
    
                var rad = 1/Math.sqrt(3);
                var geometry = new THREE.CylinderGeometry(rad, rad, 0.01, 3);//short triangular prism
                geometry.applyMatrix(new THREE.Matrix4().makeRotationX(-Math.PI/2));
                return geometry;
            },
    
            _setRotation: function(){
                this.mesh.rotation.set(0,0,(this.highlightedObject.getAbsoluteIndex().z+1)%2*Math.PI);
            }
    
        });
    });