class QCuboidGeometry

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

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry

Synopsis

Properties

Methods

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.

Note

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

property indexAttributeᅟ: QAttribute

Holds the geometry index attribute.

Access functions:
property normalAttributeᅟ: QAttribute

Holds the geometry normal attribute.

Access functions:
property positionAttributeᅟ: QAttribute

Holds the geometry position attribute.

Access functions:
property tangentAttributeᅟ: QAttribute

Holds the geometry tangent attribute.

Access functions:
property texCoordAttributeᅟ: QAttribute

Holds the geometry texture coordinate attribute.

Access functions:
property xExtentᅟ: float

Holds the x extent of the geometry.

Access functions:
property xyMeshResolutionᅟ: 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 xzMeshResolutionᅟ: 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 yExtentᅟ: float

Holds the y extent of the geometry.

Access functions:
property yzMeshResolutionᅟ: 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 zExtentᅟ: float

Holds the z extent of the geometry.

Access functions:
__init__([parent=None])
Parameters:

parentQNode

Constructs a new QCuboidGeometry with parent.

indexAttribute()
Return type:

QAttribute

Getter of property indexAttributeᅟ .

normalAttribute()
Return type:

QAttribute

Getter of property normalAttributeᅟ .

positionAttribute()
Return type:

QAttribute

Getter of property positionAttributeᅟ .

setXExtent(xExtent)
Parameters:

xExtent – float

See also

xExtent()

Setter of property xExtentᅟ .

setXYMeshResolution(resolution)
Parameters:

resolutionQSize

Setter of property xyMeshResolutionᅟ .

setXZMeshResolution(resolution)
Parameters:

resolutionQSize

Setter of property xzMeshResolutionᅟ .

setYExtent(yExtent)
Parameters:

yExtent – float

See also

yExtent()

Setter of property yExtentᅟ .

setYZMeshResolution(resolution)
Parameters:

resolutionQSize

Setter of property yzMeshResolutionᅟ .

setZExtent(zExtent)
Parameters:

zExtent – float

See also

zExtent()

Setter of property zExtentᅟ .

tangentAttribute()
Return type:

QAttribute

Getter of property tangentAttributeᅟ .

texCoordAttribute()
Return type:

QAttribute

Getter of property texCoordAttributeᅟ .

updateIndices()

Updates indices based on mesh resolutions.

updateVertices()

Updates vertices based on mesh resolutions.

xExtent()
Return type:

float

See also

setXExtent()

Getter of property xExtentᅟ .

xExtentChanged(xExtent)
Parameters:

xExtent – float

Notification signal of property xExtentᅟ .

xyMeshResolution()
Return type:

QSize

Getter of property xyMeshResolutionᅟ .

xyMeshResolutionChanged(xyMeshResolution)
Parameters:

xyMeshResolutionQSize

Notification signal of property xyMeshResolutionᅟ .

xzMeshResolution()
Return type:

QSize

Getter of property xzMeshResolutionᅟ .

xzMeshResolutionChanged(xzMeshResolution)
Parameters:

xzMeshResolutionQSize

Notification signal of property xzMeshResolutionᅟ .

yExtent()
Return type:

float

See also

setYExtent()

Getter of property yExtentᅟ .

yExtentChanged(yExtent)
Parameters:

yExtent – float

Notification signal of property yExtentᅟ .

yzMeshResolution()
Return type:

QSize

Getter of property yzMeshResolutionᅟ .

yzMeshResolutionChanged(yzMeshResolution)
Parameters:

yzMeshResolutionQSize

Notification signal of property yzMeshResolutionᅟ .

zExtent()
Return type:

float

See also

setZExtent()

Getter of property zExtentᅟ .

zExtentChanged(zExtent)
Parameters:

zExtent – float

Notification signal of property zExtentᅟ .