o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1380709791.619722:@value"�{I"
class:ETI"ProcessedAsset;�FI"logical_path;�TI"Core/SphereGeometry.js;�FI"
pathname;�TI"T/Users/bogumil/www/engines/cesium/app/assets/javascripts/Core/SphereGeometry.js;�FI"content_type;�TI"application/javascript;�TI"
mtime;�TI"2013-10-02T12:16:28+02:00;�TI"length;�Ti�I"digest;�TI"%f5b5625cf5d8f795b5171577b46ba6c4;�FI"source;�TI"�/*global define*/

define(['Core/defaultValue', 'Core/Cartesian3', 'Core/EllipsoidGeometry'], function(
        defaultValue,
        Cartesian3,
        EllipsoidGeometry) {
    "use strict";

    /**
     * A description of a sphere centered at the origin.
     *
     * @alias SphereGeometry
     * @constructor
     *
     * @param {Number} [options.radius=1.0] The radius of the sphere.
     * @param {Number} [options.stackPartitions=64] The number of times to partition the ellipsoid into stacks.
     * @param {Number} [options.slicePartitions=64] The number of times to partition the ellipsoid into radial slices.
     * @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
     *
     * @exception {DeveloperError} options.slicePartitions cannot be less than three.
     * @exception {DeveloperError} options.stackPartitions cannot be less than three.
     *
     * @see SphereGeometry#createGeometry
     *
     * @example
     * var sphere = new SphereGeometry({
     *   radius : 100.0,
     *   vertexFormat : VertexFormat.POSITION_ONLY
     * });
     * var geometry = SphereGeometry.createGeometry(sphere);
     */
    var SphereGeometry = function(options) {
        var radius = defaultValue(options.radius, 1.0);
        var radii = new Cartesian3(radius, radius, radius);
        var ellipsoidOptions = {
                radii: radii,
                stackPartitions: options.stackPartitions,
                slicePartitions: options.slicePartitions,
                vertexFormat: options.vertexFormat
        };

        this._ellipsoidGeometry = new EllipsoidGeometry(ellipsoidOptions);
        this._workerName = 'createSphereGeometry';
    };

    /**
     * Computes the geometric representation of a sphere, including its vertices, indices, and a bounding sphere.
     *
     * @param {SphereGeometry} sphereGeometry A description of the sphere.
     * @returns {Geometry} The computed vertices and indices.
     */
    SphereGeometry.createGeometry = function(sphereGeometry) {
        return EllipsoidGeometry.createGeometry(sphereGeometry._ellipsoidGeometry);
    };

    return SphereGeometry;
});
;�TI"dependency_digest;�TI"%098b7df157b654ad0e1af8b48cba3c33;�FI"required_paths;�T[I"T/Users/bogumil/www/engines/cesium/app/assets/javascripts/Core/SphereGeometry.js;�FI"dependency_paths;�T[{I"	path;�TI"T/Users/bogumil/www/engines/cesium/app/assets/javascripts/Core/SphereGeometry.js;�FI"
mtime;�TI"2013-10-02T12:16:28+02:00;�TI"digest;�TI"%b591aa2e6eafd1e890cc92916920b854;�FI"
_version;�TI"%6776f581a4329e299531e1d52aa59832;�F