- The options object takes the following properties
- {Number} [options.radius=1.0] The radius of the sphere.
- {Number} [options.stackPartitions=64] The number of times to partition the ellipsoid into stacks.
- {Number} [options.slicePartitions=64] The number of times to partition the ellipsoid into radial slices.
- {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.
A description of a sphere centered at the origin.
alias SphereGeometry
- The options object takes the following properties - {Number} [options.radius=1.0] The radius of the sphere. - {Number} [options.stackPartitions=64] The number of times to partition the ellipsoid into stacks. - {Number} [options.slicePartitions=64] The number of times to partition the ellipsoid into radial slices. - {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.
var sphere = new Cesium.SphereGeometry({ radius : 100.0, vertexFormat : Cesium.VertexFormat.POSITION_ONLY }); var geometry = Cesium.SphereGeometry.createGeometry(sphere);
SphereGeometry#createGeometry