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,任何更小的值都不会生成任何几何体。


status : bool [read-only]

当异步为 true 时,该属性用于保存几何体生成的状态。

常数说明
ConeGeometry.Null几何体生成尚未开始
ConeGeometry.Ready几何体生成已完成。
ConeGeometry.Loading几何体生成正在进行。
ConeGeometry.Error几何体生成失败。

topRadius : real

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

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


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