CylinderGeometry

CylinderGeometry

new

A Geometry that represents vertices and indices for a cylinder.

Parameters:
Name Type Argument Default Description
options.length Number The length of the cylinder
options.topRadius Number The radius of the top of the cylinder
options.bottomRadius Number The radius of the bottom of the cylinder
options.slices Number <optional>
100 The number of edges around perimeter of the cylinder
options.vertexFormat VertexFormat <optional>
VertexFormat.DEFAULT The vertex attributes to be computed.
Throws:
Example
// create cylinder geometry
var cylinder = new Cesium.CylinderGeometry({
    length: 200000,
    topRadius: 80000,
    bottomRadius: 200000,
});
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.