QGeometry

Encapsulates geometry. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QGeometry

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

New in version 6.0.

Synopsis

Functions

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.

class PySide6.Qt3DCore.Qt3DCore.QGeometry([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QGeometry with parent.

PySide6.Qt3DCore.Qt3DCore.QGeometry.addAttribute(attribute)
Parameters

attributePySide6.Qt3DCore.Qt3DCore.QAttribute

Adds an attribute to this geometry.

PySide6.Qt3DCore.Qt3DCore.QGeometry.attributes()
Return type

Returns the list of attributes in this geometry.

PySide6.Qt3DCore.Qt3DCore.QGeometry.boundingVolumePositionAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

PySide6.Qt3DCore.Qt3DCore.QGeometry.boundingVolumePositionAttributeChanged(boundingVolumePositionAttribute)
Parameters

boundingVolumePositionAttributePySide6.Qt3DCore.Qt3DCore.QAttribute

PySide6.Qt3DCore.Qt3DCore.QGeometry.maxExtent()
Return type

PySide6.QtGui.QVector3D

PySide6.Qt3DCore.Qt3DCore.QGeometry.maxExtentChanged(maxExtent)
Parameters

maxExtentPySide6.QtGui.QVector3D

PySide6.Qt3DCore.Qt3DCore.QGeometry.minExtent()
Return type

PySide6.QtGui.QVector3D

PySide6.Qt3DCore.Qt3DCore.QGeometry.minExtentChanged(minExtent)
Parameters

minExtentPySide6.QtGui.QVector3D

PySide6.Qt3DCore.Qt3DCore.QGeometry.removeAttribute(attribute)
Parameters

attributePySide6.Qt3DCore.Qt3DCore.QAttribute

Removes the given attribute from this geometry.

PySide6.Qt3DCore.Qt3DCore.QGeometry.setBoundingVolumePositionAttribute(boundingVolumePositionAttribute)
Parameters

boundingVolumePositionAttributePySide6.Qt3DCore.Qt3DCore.QAttribute