topical media & game development

talk show tell print

mobile-query-three-js-tquery.geometry.js / js



  
Handle geometry. It inherit from tQuery.Node @class handle THREE.Geometry. It inherit from {gray tQuery.Node} @borrows tQuery.Node#get as this.get @borrows tQuery.Node#each as this.each @borrows tQuery.Node#back as this.back
parameter: {THREE.Geometry} object an instance or an array of instance

  
  tQuery.Geometry        = function(object)
  {
          // call parent
          tQuery.Geometry.parent.constructor.call(this, object)
  
          // sanity check - all items MUST be THREE.Geometry
          this._lists.forEach(function(item){ console.assert(item instanceof THREE.Geometry); });
  };
  
  
inherit from tQuery.Node

  
  tQuery.inherit(tQuery.Geometry, tQuery.Node);
  
  
Make it pluginable

  
  tQuery.pluginsInstanceOn(tQuery.Geometry);
  
  
define all acceptable attributes for this class

  
  tQuery.mixinAttributes(tQuery.Geometry, {
          hasTangents        : tQuery.convert.toBoolean,
          dynamic                : tQuery.convert.toBoolean
  });


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.