CylinderGeometry QML Type

Provides geometry for a cylinder. 更多...

import 语句: import QtQuick3D.Helpers
Since: Qt 6.9
继承:

几何体

特性

详细描述

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.

特性文档编制

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.

常量 描述
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.