本页内容

CapsuleGeometry QML Type

用于生成胶囊模型的几何体。更多...

Import Statement: import QtQuick3D.Physics.Helpers
Since: Qt 6.4
Inherits:

Geometry

Status: Deprecated since 6.10

自 QtQuick3D.Physics.Helpers 6.10 起,此类型已被废弃。我们强烈建议不要在新代码中使用它。

属性

详细说明

已弃用,请改用QtQuick3D.Helpers.CapsuleGeometry 。

用于生成胶囊模型的几何体。

属性文档

diameter : real [default: 100]

xz平面上的直径。

enableNormals : bool [default: true]

生成网格面的法线。

enableUV : bool [default: false]

生成网格的UV坐标。

height : real [default: 100]

y 轴上中间圆柱体的高度(不包括半球部分)。

latitudes : int [default: 16]

按倾角分布的纬度数量。必须为偶数。大于 1024 的值将被限制。

longitudes : int [default: 32]

按方位角分布的经度(或子午线)数量。大于 1024 的值将被限制。

rings : int [default: 1]

半球之间圆柱体中的节数。大于1024的值将被限制。

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