1 /**
  2  * Handle geometry. It inherit from tQuery.Node
  3  *
  4  * @class handle THREE.Geometry. It inherit from {@link tQuery.Node}
  5  * 
  6  * @borrows tQuery.Node#get as this.get
  7  * @borrows tQuery.Node#each as this.each
  8  * @borrows tQuery.Node#back as this.back
  9  *
 10  * @param {THREE.Geometry} object an instance or an array of instance
 11 */
 12 tQuery.Geometry	= function(object)
 13 {
 14 	// call parent
 15 	tQuery.Geometry.parent.constructor.call(this, object)
 16 
 17 	// sanity check - all items MUST be THREE.Geometry
 18 	this._lists.forEach(function(item){ console.assert(item instanceof THREE.Geometry); });
 19 };
 20 
 21 /**
 22  * inherit from tQuery.Node
 23 */
 24 tQuery.inherit(tQuery.Geometry, tQuery.Node);
 25 
 26 /**
 27  * Make it pluginable
 28 */
 29 tQuery.pluginsInstanceOn(tQuery.Geometry);
 30 
 31 /**
 32  * define all acceptable attributes for this class
 33 */
 34 tQuery.mixinAttributes(tQuery.Geometry, {
 35 	hasTangents	: tQuery.convert.toBoolean,
 36 	dynamic		: tQuery.convert.toBoolean
 37 });