QCuboidGeometry#

The QCuboidGeometry class allows creation of a cuboid in 3D space. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry

Synopsis#

Properties#

Functions#

Slots#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

The QCuboidGeometry class is most commonly used internally by the QCuboidMesh but can also be used in custom QGeometryRenderer subclasses.

class PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QCuboidGeometry with parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry index attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry normal attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry position attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.tangentAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry tangent attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.texCoordAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry texture coordinate attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xExtent: float#

Holds the x extent of the geometry.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolution: 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.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolution: 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.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtent: float#

Holds the y extent of the geometry.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolution: 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.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtent: float#

Holds the z extent of the geometry.

Access functions:
PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.indexAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property indexAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.normalAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property normalAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.positionAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property positionAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXExtent(xExtent)#
Parameters:

xExtent – float

See also

xExtent()

Setter of property xExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXYMeshResolution(resolution)#
Parameters:

resolutionPySide6.QtCore.QSize

Setter of property xyMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXZMeshResolution(resolution)#
Parameters:

resolutionPySide6.QtCore.QSize

Setter of property xzMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setYExtent(yExtent)#
Parameters:

yExtent – float

See also

yExtent()

Setter of property yExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setYZMeshResolution(resolution)#
Parameters:

resolutionPySide6.QtCore.QSize

Setter of property yzMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setZExtent(zExtent)#
Parameters:

zExtent – float

See also

zExtent()

Setter of property zExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.tangentAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property tangentAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.texCoordAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property texCoordAttribute .

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

See also

setXExtent()

Getter of property xExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xExtentChanged(xExtent)#
Parameters:

xExtent – float

Notification signal of property xExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolution()#
Return type:

PySide6.QtCore.QSize

Getter of property xyMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolutionChanged(xyMeshResolution)#
Parameters:

xyMeshResolutionPySide6.QtCore.QSize

Notification signal of property xyMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolution()#
Return type:

PySide6.QtCore.QSize

Getter of property xzMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolutionChanged(xzMeshResolution)#
Parameters:

xzMeshResolutionPySide6.QtCore.QSize

Notification signal of property xzMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtent()#
Return type:

float

See also

setYExtent()

Getter of property yExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtentChanged(yExtent)#
Parameters:

yExtent – float

Notification signal of property yExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolution()#
Return type:

PySide6.QtCore.QSize

Getter of property yzMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolutionChanged(yzMeshResolution)#
Parameters:

yzMeshResolutionPySide6.QtCore.QSize

Notification signal of property yzMeshResolution .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtent()#
Return type:

float

See also

setZExtent()

Getter of property zExtent .

PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtentChanged(zExtent)#
Parameters:

zExtent – float

Notification signal of property zExtent .