- Qt 6.12
- Qt Quick 3D
- QML Types
- QtQuick3D.Helpers
- ConeGeometry
- Qt Quick 3D | Commercial or GPLv3

# ConeGeometry QML Type

Provides geometry for a cone. More...

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

- List of all members, including inherited members

## Properties

- asynchronous : bool
- bottomRadius : real
- length : real
- rings : int
- segments : int
- status : bool
- topRadius : real

## Detailed Description

ConeGeometry is a geometry type that represents a cone. The cone's size is defined by its top radius, bottom radius, and length. The topology of the cone is defined by the number of rings and segments.

## Property Documentation

### asynchronous : bool

This property holds whether the geometry generation should be asynchronous.

### bottomRadius : real

This property holds the bottom radius of the cone.

Note: topRadius and bottomRadius can not both be `0.0`

### length : real

This property holds the length of the cone. This value must be greater than 0 to generate a cone.

### rings : int

This property holds the number of rings of the cone, which are vertical subdivisions of the cone. The minimum value is 0, which means the cone has no vertical subdivisions.

### segments : int

This property holds the number of segments of the cone. The minimum value is 3, and any value lower will not generate any geometry.

### status : bool `[read-only]`

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

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

### topRadius : real

This property holds the top radius of the cone. This value must be 0 or greater.

Note: topRadius and bottomRadius can not both be `0.0`