new CylinderGeometryOutline
A description of the outline of 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> |
128 | The number of edges around perimeter of the cylinder. |
options.numberOfVerticalLines |
Number |
<optional> |
16 | Number of lines to draw between the top and bottom surfaces of the cylinder. |
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 CylinderOutlineGeometry({
length: 200000,
topRadius: 80000,
bottomRadius: 200000,
});
var geometry = CylinderOutlineGeometry.createGeometry(cylinder);
- CylinderOutlineGeometry#createGeometry
