本页内容

ConeGeometry QML Type

提供圆锥的几何信息。更多...

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

Geometry

属性

详细说明

ConeGeometry 是一种表示锥体的几何类型。锥体的大小由其顶部半径、底部半径和长度定义。锥体的拓扑结构由环数和段数定义。

属性文档

asynchronous : bool

该属性用于指定几何体的生成是否应为异步的。

bottomRadius : real

该属性用于指定锥体的底面半径。

注意: topRadius 和bottomRadius不能同时为0.0

length : real

该属性存储锥体的长度。要生成锥体,此值必须大于 0。

rings : int

该属性存储锥体的环数,这些环是锥体的垂直分区。最小值为 0,表示锥体没有垂直分区。

segments : int

该属性存储锥体的分段数。最小值为 3,若值小于 3,则不会生成任何几何体。

status : bool [read-only]

当“asynchronous”为true时,该属性保存几何体生成的状态。

常量描述
ConeGeometry.Null几何生成尚未开始
ConeGeometry.Ready几何生成已完成。
ConeGeometry.Loading正在生成几何图形。
ConeGeometry.Error几何体生成失败。

topRadius : real

该属性存储锥体的顶部半径。该值必须为 0 或更大。

注意:topRadius 和bottomRadius 不能同时为0.0

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