class QGeometry#

Encapsulates geometry. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QGeometry

Inherited by: QTorusGeometry, QSphereGeometry, QPlaneGeometry, QExtrudedTextGeometry, QCylinderGeometry, QCuboidGeometry, QConeGeometry

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#

A QGeometry class is used to group a list of QAttribute objects together to form a geometric shape Qt3D is able to render using Qt3DCore::QGeometryRenderer. Special attribute can be set in order to calculate bounding volume of the shape.

Note

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

property boundingVolumePositionAttributeᅟ: QAttribute#

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by defaultPositionAttributeName .

See also

QAttribute

Access functions:
property maxExtentᅟ: QVector3D#

Holds the vertex with the highest x, y, z position values.

Access functions:
property minExtentᅟ: QVector3D#

Holds the vertex with the lowest x, y, z position values.

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

parentQNode

Constructs a new QGeometry with parent.

addAttribute(attribute)#
Parameters:

attributeQAttribute

Adds an attribute to this geometry.

attributes()#
Return type:

.list of Qt3DCore.QAttribute

Returns the list of attributes in this geometry.

boundingVolumePositionAttribute()#
Return type:

QAttribute

See also

setBoundingVolumePositionAttribute()

Getter of property boundingVolumePositionAttributeᅟ .

boundingVolumePositionAttributeChanged(boundingVolumePositionAttribute)#
Parameters:

boundingVolumePositionAttributeQAttribute

Notification signal of property boundingVolumePositionAttributeᅟ .

maxExtent()#
Return type:

QVector3D

Getter of property maxExtentᅟ .

maxExtentChanged(maxExtent)#
Parameters:

maxExtentQVector3D

Notification signal of property maxExtentᅟ .

minExtent()#
Return type:

QVector3D

Getter of property minExtentᅟ .

minExtentChanged(minExtent)#
Parameters:

minExtentQVector3D

Notification signal of property minExtentᅟ .

removeAttribute(attribute)#
Parameters:

attributeQAttribute

Removes the given attribute from this geometry.

setBoundingVolumePositionAttribute(boundingVolumePositionAttribute)#
Parameters:

boundingVolumePositionAttributeQAttribute

See also

boundingVolumePositionAttribute()

Setter of property boundingVolumePositionAttributeᅟ .