CylinderGeometry QML Type

Provides geometry for a cylinder. More...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.9
Inherits:

Geometry

Properties

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.

ConstantDescription
CylinderGeometry.NullThe geometry generation has not started
CylinderGeometry.ReadyThe geometry generation is complete.
CylinderGeometry.LoadingThe geometry generation is in progress.
CylinderGeometry.ErrorThe geometry generation failed.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.