SphereGeometry QML Type
SphereGeometry 允许在 3D 空间中创建一个球体。更多...
| Import Statement: | import Qt3D.Extras 2.12 |
| In C++: | QSphereGeometry |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- generateTangents : bool
- indexAttribute : Attribute
- normalAttribute : Attribute
- positionAttribute : Attribute
- radius : real
- rings : int
- slices : int
- tangentAttribute : Attribute
- texCoordAttribute : Attribute
详细说明
SphereGeometry类型通常在SphereMesh 类型内部使用,但也可用于自定义的GeometryRenderer 类型。
属性文档
generateTangents : bool
存储自动生成切向量标志的值。切向量与法向量正交。
indexAttribute : Attribute [read-only]
存储几何索引属性。
normalAttribute : Attribute [read-only]
存储几何体的法线属性。
positionAttribute : Attribute [read-only]
存储几何位置属性。
radius : real
存储球体的半径。
rings : int
存储球体中的环的数量。
slices : int
存储球体中的切片数量。
tangentAttribute : Attribute [read-only]
保存几何体的切线属性。
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.