lib/leap.hand-mesh.js
function HandMesh(options) {
    this.options = options = Object.assign({}, DEFAULTS, options || {});
    this.options.jointColor = this.options.jointColor || JOINT_COLORS[numInstances % 2];
    this.object3D = new THREE.Object3D();
    this.material = !isNaN(options.opacity) ? new THREE.MeshPhongMaterial({
      fog: false,
      transparent: true,
      opacity: options.opacity
    }) : new THREE.MeshPhongMaterial({fog: false});

    this.createFingers();
    this.createArm();
    numInstances++;
  }
function HandMesh(options) {
    this.options = options = Object.assign({}, DEFAULTS, options || {});
    this.options.jointColor = this.options.jointColor || JOINT_COLORS[numInstances % 2];
    this.object3D = new THREE.Object3D();
    this.material = !isNaN(options.opacity) ? new THREE.MeshPhongMaterial({
      fog: false,
      transparent: true,
      opacity: options.opacity
    }) : new THREE.MeshPhongMaterial({fog: false});

    this.createFingers();
    this.createArm();
    numInstances++;
  }
function HandMesh ( options ) { this . options = options = Object . assign ( { } , DEFAULTS , options || { } ) ; this . options . jointColor = this . options . jointColor || JOINT_COLORS [ numInstances % 2 ] ; this . object3D = new THREE . Object3D ( ) ; this . material = ! isNaN ( options . opacity ) ? new THREE . MeshPhongMaterial ( { fog : false , transparent : true , opacity : options . opacity } ) : new THREE . MeshPhongMaterial ( { fog : false } ) ; this . createFingers ( ) ; this . createArm ( ) ; numInstances ++ ; }
Wrapper for a THREE.Mesh instance fitted to a single Leap Motion hand.
@param {Object} options
Wrapper for a THREE . Mesh instance fitted to a single Leap Motion hand .