CylinderGeometry QML Type | Qt Quick 3D | Qt 6.10.3
Description: Provides geometry for a cylinder.

- Qt 6.10
- Qt Quick 3D
- QML Types
- QtQuick3D.Helpers
- CylinderGeometry
- Qt Quick 3D | Commercial or GPLv3

# CylinderGeometry QML Type

Provides geometry for a cylinder. More...

Import Statement: | `import QtQuick3D.Helpers`
Since: | Qt 6.9
Inherits: | Geometry

- List of all members, including inherited members

## Properties

- asynchronous : bool
- length : real
- radius : real
- rings : int
- segments : int
- status : bool

## Detailed Description

CylinderGeometry is a geometry type that generates a cylinder shape. The cylinder's shape is defined by it's radius and length properties. The topology of the cylinder is defined by the number of segments and rings.

## Property Documentation

asynchronous : bool

This property holds whether the geometry generation should be asynchronous.

length : real

This property holds the length of the cylinder. This property must be greather than 0 to generate a valid cylinder.

radius : real

This property holds the radius of the cylinder. This property must be greater than 0 to generate a valid cylinder.

rings : int

This property holds the number of rings in the cylinder. The rings are the lengthwise divisions of the cylinder. The minimum number of rings is 0.

segments : int

This property holds the number of segments in the cylinder. The segments are the radial divisions of the cylinder. The minimum number of segments is 3.

status : bool `[read-only]`

This property holds the status of the geometry generation when asynchronous is true.

Constant | Description
--- | ---
`CylinderGeometry.Null` | The geometry generation has not started
`CylinderGeometry.Ready` | The geometry generation is complete.
`CylinderGeometry.Loading` | The geometry generation is in progress.
`CylinderGeometry.Error` | The geometry generation failed.