value: function(cameraName) { //TODO: make that a default projection method var projection = Object.create(Projection); projection.initWithDescription( { "type":"perspective", "perspective" : { "yfov":45, "aspectRatio":1, "znear":0.1, "zfar":100 } }); //create camera var camera = Object.create(Camera).init(); camera.projection = projection; //create node to hold the camera var cameraNode = Object.create(glTFNode).init(); camera.name = cameraNode.name = cameraName; cameraNode.id = Uuid.generate(); cameraNode.baseId = cameraNode.id; cameraNode.cameras.push(camera); return cameraNode; }
get: function () { return this._uuid || (this._uuid = UUID.generate()); }
value: function Figure() { this.id = Uuid.generate(); this.type = "Feature"; }