1 /**
  2  * potree.js 
  3  * http://potree.org
  4  *
  5  * Copyright 2012, Markus Sch�tz
  6  * Licensed under the GPL Version 2 or later.
  7  * - http://potree.org/wp/?page_id=7
  8  * - http://www.gnu.org/licenses/gpl-3.0.html
  9  *
 10  */
 11 
 12 /**
 13  * @class
 14  * @augments SceneNode
 15  */
 16 function MeshNode(name, mesh, parent){
 17 	SceneNode.call(this, name, parent);
 18 	this.mesh = mesh;
 19 }
 20 
 21 MeshNode.prototype = new SceneNode(inheriting);
 22 
 23 MeshNode.prototype.render = function(camera){
 24 	if(this.visible){
 25 		this.mesh.render(this, camera);
 26 	}
 27 };
 28