A description of an ellipsoid centered at the origin.
alias EllipsoidGeometry
- The options object takes the following properties
- {Cartesian3} [options.radii=Cartesian3(1.0, 1.0, 1.0)] The radii of the ellipsoid in the x, y, and z directions.
- {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 ellipsoid = new Cesium.EllipsoidGeometry({
vertexFormat : Cesium.VertexFormat.POSITION_ONLY,
radii : new Cesium.Cartesian3(1000000.0, 500000.0, 500000.0)
});
var geometry = Cesium.EllipsoidGeometry.createGeometry(ellipsoid);
A description of an ellipsoid centered at the origin.
alias EllipsoidGeometry
- The options object takes the following properties - {Cartesian3} [options.radii=Cartesian3(1.0, 1.0, 1.0)] The radii of the ellipsoid in the x, y, and z directions. - {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 ellipsoid = new Cesium.EllipsoidGeometry({ vertexFormat : Cesium.VertexFormat.POSITION_ONLY, radii : new Cesium.Cartesian3(1000000.0, 500000.0, 500000.0) }); var geometry = Cesium.EllipsoidGeometry.createGeometry(ellipsoid);
EllipsoidGeometry#createGeometry