new CylinderGeometry(options)
A description of a cylinder.
Name |
Type |
Description |
options |
Object
|
Object with the following properties:
Name |
Type |
Default |
Description |
length |
Number
|
|
The length of the cylinder. |
topRadius |
Number
|
|
The radius of the top of the cylinder. |
bottomRadius |
Number
|
|
The radius of the bottom of the cylinder. |
slices |
Number
|
128
|
optional
The number of edges around perimeter of the cylinder. |
vertexFormat |
VertexFormat
|
VertexFormat.DEFAULT
|
optional
The vertex attributes to be computed. |
|
Throws:
Example:
// create cylinder geometry
var cylinder = new Cesium.CylinderGeometry({
length: 200000,
topRadius: 80000,
bottomRadius: 200000,
});
var geometry = Cesium.CylinderGeometry.createGeometry(cylinder);
Demo:
See: