- The options object takes the following properties
- {Number} options.length The length of the cylinder.
- {Number} options.topRadius The radius of the top of the cylinder.
- {Number} options.bottomRadius The radius of the bottom of the cylinder.
- {Number} [options.slices=128] The number of edges around perimeter of the cylinder.
- {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
exception {DeveloperError} options.length must be greater than 0.
exception {DeveloperError} options.topRadius must be greater than 0.
exception {DeveloperError} options.bottomRadius must be greater than 0.
exception {DeveloperError} bottomRadius and topRadius cannot both equal 0.
exception {DeveloperError} options.slices must be greater that 3.
A description of a cylinder.
alias CylinderGeometry
- The options object takes the following properties - {Number} options.length The length of the cylinder. - {Number} options.topRadius The radius of the top of the cylinder. - {Number} options.bottomRadius The radius of the bottom of the cylinder. - {Number} [options.slices=128] The number of edges around perimeter of the cylinder. - {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
exception {DeveloperError} options.length must be greater than 0. exception {DeveloperError} options.topRadius must be greater than 0. exception {DeveloperError} options.bottomRadius must be greater than 0. exception {DeveloperError} bottomRadius and topRadius cannot both equal 0. exception {DeveloperError} options.slices must be greater that 3.
// create cylinder geometry var cylinder = new Cesium.CylinderGeometry({ length: 200000, topRadius: 80000, bottomRadius: 200000, }); var geometry = Cesium.CylinderGeometry.createGeometry(cylinder);
CylinderGeometry.createGeometry