- 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.
- {Number} [options.numberOfVerticalLines=16] Number of lines to draw between the top and bottom surfaces of the cylinder.
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 the outline of a cylinder.
alias CylinderOutlineGeometry
- 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. - {Number} [options.numberOfVerticalLines=16] Number of lines to draw between the top and bottom surfaces of the cylinder.
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.CylinderOutlineGeometry({ length: 200000, topRadius: 80000, bottomRadius: 200000, }); var geometry = Cesium.CylinderOutlineGeometry.createGeometry(cylinder);
CylinderOutlineGeometry.createGeometry