PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry¶
- class QCuboidGeometry¶
QCuboidGeometry类允许在3D空间中创建一个长方体。更多…概要¶
属性¶
方法¶
def
__init__()def
indexAttribute()def
updateIndices()def
updateVertices()def
xExtent()def
yExtent()def
zExtent()
插槽¶
def
setXExtent()def
setYExtent()def
setZExtent()
信号¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
QCuboidGeometry类最常用于QCuboidMesh内部,但也可以用于自定义的QGeometryRenderer子类中。注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property indexAttributeᅟ: QAttribute¶
保存几何索引属性。
- Access functions:
- property normalAttributeᅟ: QAttribute¶
保存几何法线属性。
- Access functions:
- property positionAttributeᅟ: QAttribute¶
保存几何位置属性。
- Access functions:
- property tangentAttributeᅟ: QAttribute¶
保存几何切线属性。
- Access functions:
- property texCoordAttributeᅟ: QAttribute¶
保存几何纹理坐标属性。
- Access functions:
- property xExtentᅟ: float¶
保存几何图形的x范围。
- Access functions:
保存x-y分辨率。此属性的宽度和高度值指定为网格的x-y面生成的顶点数。
- Access functions:
保存x-z分辨率。此属性的宽度和高度值指定为网格的x-z面生成的顶点数。
- Access functions:
- property yExtentᅟ: float¶
保存几何图形的y范围。
- Access functions:
保持 y-z 分辨率。此属性的宽度和高度值指定为网格的 y-z 面生成的顶点数。
- Access functions:
- property zExtentᅟ: float¶
保存几何体的z范围。
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
使用
parent构造一个新的QCuboidGeometry。- indexAttribute()¶
- Return type:
QAttribute
属性
indexAttributeᅟ的获取器。- normalAttribute()¶
- Return type:
QAttribute
属性
normalAttributeᅟ的获取器。- positionAttribute()¶
- Return type:
QAttribute
属性
positionAttributeᅟ的获取器。- setXExtent(xExtent)¶
- Parameters:
xExtent – 浮点数
另请参阅
xExtent()
属性
xExtentᅟ的设置器。属性
xyMeshResolutionᅟ的设置器。属性
xzMeshResolutionᅟ的设置器。- setYExtent(yExtent)¶
- Parameters:
yExtent – 浮点数
另请参阅
yExtent()
属性
yExtentᅟ的设置器。属性
yzMeshResolutionᅟ的设置器。- setZExtent(zExtent)¶
- Parameters:
zExtent – 浮点数
另请参阅
zExtent()
属性
zExtentᅟ的设置器。- tangentAttribute()¶
- Return type:
QAttribute
属性
tangentAttributeᅟ的获取器。- texCoordAttribute()¶
- Return type:
QAttribute
属性
texCoordAttributeᅟ的获取器。- updateIndices()¶
根据网格分辨率更新索引。
- updateVertices()¶
根据网格分辨率更新顶点。
- xExtent()¶
- Return type:
浮点数
另请参阅
setXExtent()
属性
xExtentᅟ的获取器。- xExtentChanged(xExtent)¶
- Parameters:
xExtent – 浮点数
属性
xExtentᅟ的通知信号。属性
xyMeshResolutionᅟ的获取器。属性
xyMeshResolutionᅟ的通知信号。属性
xzMeshResolutionᅟ的获取器。属性
xzMeshResolutionᅟ的通知信号。- yExtent()¶
- Return type:
浮点数
另请参阅
setYExtent()
属性
yExtentᅟ的获取器。- yExtentChanged(yExtent)¶
- Parameters:
yExtent – 浮点数
属性
yExtentᅟ的通知信号。属性
yzMeshResolutionᅟ的获取器。属性
yzMeshResolutionᅟ的通知信号。- zExtent()¶
- Return type:
浮点数
另请参阅
setZExtent()
属性
zExtentᅟ的获取器。- zExtentChanged(zExtent)¶
- Parameters:
zExtent – 浮点数
属性
zExtentᅟ的通知信号。