QCuboidGeometry#
The QCuboidGeometry
class allows creation of a cuboid in 3D space. * * * * * The QCuboidGeometry
class is most commonly used internally by the QCuboidMesh
* but can also be used in custom QGeometryRenderer
subclasses. More…
Synopsis#
Functions#
def
indexAttribute
()def
normalAttribute
()def
positionAttribute
()def
tangentAttribute
()def
texCoordAttribute
()def
updateIndices
()def
updateVertices
()def
xExtent
()def
xyMeshResolution
()def
xzMeshResolution
()def
yExtent
()def
yzMeshResolution
()def
zExtent
()
Slots#
def
setXExtent
(xExtent)def
setXYMeshResolution
(resolution)def
setXZMeshResolution
(resolution)def
setYExtent
(yExtent)def
setYZMeshResolution
(resolution)def
setZExtent
(zExtent)
Signals#
def
xExtentChanged
(xExtent)def
xyMeshResolutionChanged
(xyMeshResolution)def
xzMeshResolutionChanged
(xzMeshResolution)def
yExtentChanged
(yExtent)def
yzMeshResolutionChanged
(yzMeshResolution)def
zExtentChanged
(zExtent)
Detailed Description#
* * * *
- class PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry([parent=None])#
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QCuboidGeometry
with parent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.indexAttribute()#
- Return type
Holds the geometry index attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.normalAttribute()#
- Return type
Holds the geometry normal attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.positionAttribute()#
- Return type
Holds the geometry position attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXExtent(xExtent)#
- Parameters
xExtent – float
Holds the x extent of the geometry.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXYMeshResolution(resolution)#
- Parameters
resolution –
PySide6.QtCore.QSize
Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXZMeshResolution(resolution)#
- Parameters
resolution –
PySide6.QtCore.QSize
Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setYExtent(yExtent)#
- Parameters
yExtent – float
Holds the y extent of the geometry.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setYZMeshResolution(resolution)#
- Parameters
resolution –
PySide6.QtCore.QSize
Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setZExtent(zExtent)#
- Parameters
zExtent – float
Holds the z extent of the geometry.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.tangentAttribute()#
- Return type
Holds the geometry tangent attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.texCoordAttribute()#
- Return type
Holds the geometry texture coordinate attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.updateIndices()#
Updates indices based on mesh resolutions.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.updateVertices()#
Updates vertices based on mesh resolutions.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xExtent()#
- Return type
float
Holds the x extent of the geometry.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xExtentChanged(xExtent)#
- Parameters
xExtent – float
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolution()#
- Return type
Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolutionChanged(xyMeshResolution)#
- Parameters
xyMeshResolution –
PySide6.QtCore.QSize
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolution()#
- Return type
Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolutionChanged(xzMeshResolution)#
- Parameters
xzMeshResolution –
PySide6.QtCore.QSize
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtent()#
- Return type
float
Holds the y extent of the geometry.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtentChanged(yExtent)#
- Parameters
yExtent – float
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolution()#
- Return type
Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolutionChanged(yzMeshResolution)#
- Parameters
yzMeshResolution –
PySide6.QtCore.QSize
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtent()#
- Return type
float
Holds the z extent of the geometry.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtentChanged(zExtent)#
- Parameters
zExtent – float