ConeGeometry QML Type
ConeGeometry 允许在 3D 空间中创建一个圆锥体。更多内容...
| Import Statement: | import Qt3D.Extras 2.12 |
| In C++: | QConeGeometry |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- bottomRadius : real
- hasBottomEndcap : bool
- hasTopEndcap : bool
- indexAttribute : Attribute
- length : real
- normalAttribute : Attribute
- positionAttribute : Attribute
- rings : int
- slices : int
- texCoordAttribute : Attribute
- topRadius : real
详细说明
ConeGeometry 类型最常被ConeMesh 类型在内部使用,但也适用于自定义的GeometryRenderer 类型。ConeGeometry 类型既可以创建圆锥,也可以创建截锥。
属性文档
bottomRadius : real
存储锥体的底面半径。
hasBottomEndcap : bool
确定锥体底部是封闭的还是敞开的。
hasTopEndcap : bool
确定锥体顶部是封闭的还是敞开的。
indexAttribute : Attribute [read-only]
存储几何索引属性。
length : real
保存锥体的长度。
normalAttribute : Attribute [read-only]
存储几何体的法线属性。
positionAttribute : Attribute [read-only]
存储几何位置属性。
rings : int
存储几何体中的环数。
slices : int
存储几何体中的切片数量。
texCoordAttribute : Attribute [read-only]
存储几何体纹理坐标属性。
topRadius : real
保存锥体的顶端半径。
© 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.