new CylinderOutlineGeometry(options)
A description of the outline of a cylinder.
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Object with the following properties:
|
Throws:
-
DeveloperError : options.length must be greater than 0.
-
DeveloperError : options.topRadius must be greater than 0.
-
DeveloperError : options.bottomRadius must be greater than 0.
-
DeveloperError : bottomRadius and topRadius cannot both equal 0.
-
DeveloperError : options.slices must be greater that 3.
Example:
// create cylinder geometry
var cylinder = new Cesium.CylinderOutlineGeometry({
length: 200000,
topRadius: 80000,
bottomRadius: 200000,
});
var geometry = Cesium.CylinderOutlineGeometry.createGeometry(cylinder);
Demo:
See:
Methods
-
staticCylinderOutlineGeometry.createGeometry(cylinderGeometry) → Geometry
-
Computes the geometric representation of an outline of a cylinder, including its vertices, indices, and a bounding sphere.
Name Type Description cylinderGeometry
CylinderOutlineGeometry A description of the cylinder outline. Returns:
The computed vertices and indices.