ConeGeometry QML Type

Provides geometry for a cone. More...

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

Geometry

Properties

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.

ConstantDescription
ConeGeometry.NullThe geometry generation has not started
ConeGeometry.ReadyThe geometry generation is complete.
ConeGeometry.LoadingThe geometry generation is in progress.
ConeGeometry.ErrorThe 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


© 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.