CuboidGeometry QML Type
CuboidGeometry 允许在三维空间中创建一个长方体。更多
| Import Statement: | import Qt3D.Extras 2.11 |
| In C++: | QCuboidGeometry |
| Status: | Deprecated |
属性
- indexAttribute : Attribute
- normalAttribute : Attribute
- positionAttribute : Attribute
- tangentAttribute : Attribute
- texCoordAttribute : Attribute
- xExtent : real
- xyMeshResolution : size
- xzMeshResolution : size
- yExtent : real
- yzMeshResolution : size
- zExtent : real
详细说明
CuboidGeometry 类型最常用于CuboidMesh 类型内部,但也可用于自定义GeometryRenderer 类型。
属性文档
indexAttribute : Attribute [read-only]
保存几何体索引属性。
normalAttribute : Attribute [read-only]
保存几何体法线属性。
positionAttribute : Attribute [read-only]
保存几何体位置属性。
tangentAttribute : Attribute [read-only]
保存几何体切线属性。
texCoordAttribute : Attribute [read-only]
保存几何纹理坐标属性。
xExtent : real
保留几何体的 x 范围。
xyMeshResolution : size
保留 x-y 分辨率。此属性的宽度和高度值指定了为网格的 x-Y 面生成的顶点数。
xzMeshResolution : size
表示 x-z 分辨率。此属性的宽度和高度值指定了为网格的 x-z 面生成的顶点数量。
yExtent : real
保存几何体的 Y 轴范围。
yzMeshResolution : size
表示 Y-Z 方向的分辨率。此属性的宽度和高度值指定了为网格的 Y-Z 面生成的顶点数量。
zExtent : real
保存几何体的 Z 轴范围。
© 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.