TorusGeometry QML Type
TorusGeometry 允许在三维空间中创建环形。更多
| Import Statement: | import Qt3D.Extras 2.11 |
| In C++: | QTorusGeometry |
| Status: | Deprecated |
属性
- indexAttribute : Attribute
- minorRadius : real
- normalAttribute : Attribute
- positionAttribute : Attribute
- radius : real
- rings : int
- slices : int
- texCoordAttribute : Attribute
详细说明
TorusGeometry 类型最常用于TorusMesh 类型内部,但也可用于自定义GeometryRenderer 类型。
属性文档
indexAttribute : Attribute [read-only]
保存几何体索引属性。
minorRadius : real
保存环的内半径。
normalAttribute : Attribute [read-only]
保存几何体法线属性。
positionAttribute : Attribute [read-only]
保存几何体位置属性。
radius : real
保存环的外半径。
rings : int
表示环状体中的环数。
slices : int
表示环面的切片数。
texCoordAttribute : Attribute [read-only]
保存几何纹理坐标属性。
© 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.