EllipsoidGeometry

EllipsoidGeometry

new

A Geometry that represents vertices and indices for an ellipsoid centered at the origin.

Parameters:
Name Type Argument Default Description
options.radii Cartesian3 <optional>
Cartesian3(1.0, 1.0, 1.0) The radii of the ellipsoid in the x, y, and z directions.
options.numberOfPartitions Number <optional>
32 The number of times to partition the ellipsoid in a plane formed by two radii in a single quadrant.
options.vertexFormat VertexFormat <optional>
VertexFormat.DEFAULT The vertex attributes to be computed.
Throws:
DeveloperError : options.numberOfPartitions must be greater than zero.
Example
var ellipsoid = new EllipsoidGeometry({
  vertexFormat : VertexFormat.POSITION_ONLY,
  radii : new Cartesian3(1000000.0, 500000.0, 500000.0)
});
Source:

Members

:Object

An object containing GeometryAttribute properties named after each of the true values of the VertexFormat option.
See:

:BoundingSphere

A tight-fitting bounding sphere that encloses the vertices of the geometry.

:Array

Index data that, along with Geometry#primitiveType, determines the primitives in the geometry.

:PrimitiveType

The type of primitives in the geometry. For this geometry, it is PrimitiveType.TRIANGLES.