PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry¶
- class QCuboidGeometry¶
The
QCuboidGeometryclass allows creation of a cuboid in 3D space. More…Synopsis¶
Properties¶
Methods¶
def
__init__()def
indexAttribute()def
updateIndices()def
updateVertices()def
xExtent()def
yExtent()def
zExtent()
Slots¶
def
setXExtent()def
setYExtent()def
setZExtent()
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
QCuboidGeometryclass is most commonly used internally by theQCuboidMeshbut can also be used in customQGeometryRenderersubclasses.Note
Properties can be used directly when
from __feature__ import true_propertyis 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:
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:
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:
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:
parent –
QNode
Constructs a new
QCuboidGeometrywithparent.- 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ᅟ.Setter of property
xyMeshResolutionᅟ.Setter of property
xzMeshResolutionᅟ.- setYExtent(yExtent)¶
- Parameters:
yExtent – float
See also
yExtent()
Setter of property
yExtentᅟ.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ᅟ.Getter of property
xyMeshResolutionᅟ.Notification signal of property
xyMeshResolutionᅟ.Getter of property
xzMeshResolutionᅟ.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ᅟ.Getter of property
yzMeshResolutionᅟ.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ᅟ.