new EllipsoidGeometry
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) });
Members
-
attributes :Object
-
An object containing GeometryAttribute properties named after each of the
true
values of the VertexFormat option.See:
-
boundingSphere :BoundingSphere
-
A tight-fitting bounding sphere that encloses the vertices of the geometry.
-
indices :Array
-
Index data that, along with Geometry#primitiveType, determines the primitives in the geometry.
-
primitiveType :PrimitiveType
-
The type of primitives in the geometry. For this geometry, it is PrimitiveType.TRIANGLES.