QGeometry

Encapsulates geometry. More

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

Synopsis

Functions

Slots

Signals

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 QGeometryRenderer . Special attribute can be set in order to calculate bounding volume of the shape.

class PySide2.Qt3DRender.QGeometry([parent=None])
param parent

PySide2.Qt3DCore.QNode

Constructs a new QGeometry with parent .

PySide2.Qt3DRender.QGeometry.addAttribute(attribute)
Parameters

attributePySide2.Qt3DRender.QAttribute

Adds an attribute to this geometry.

PySide2.Qt3DRender.QGeometry.attributes()
Return type

Returns the list of attributes in this geometry.

PySide2.Qt3DRender.QGeometry.boundingVolumePositionAttribute()
Return type

PySide2.Qt3DRender.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

PySide2.Qt3DRender.QGeometry.boundingVolumePositionAttributeChanged(boundingVolumePositionAttribute)
Parameters

boundingVolumePositionAttributePySide2.Qt3DRender.QAttribute

PySide2.Qt3DRender.QGeometry.maxExtent()
Return type

PySide2.QtGui.QVector3D

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

PySide2.Qt3DRender.QGeometry.maxExtentChanged(maxExtent)
Parameters

maxExtentPySide2.QtGui.QVector3D

PySide2.Qt3DRender.QGeometry.minExtent()
Return type

PySide2.QtGui.QVector3D

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

PySide2.Qt3DRender.QGeometry.minExtentChanged(minExtent)
Parameters

minExtentPySide2.QtGui.QVector3D

PySide2.Qt3DRender.QGeometry.removeAttribute(attribute)
Parameters

attributePySide2.Qt3DRender.QAttribute

Removes the given attribute from this geometry.

PySide2.Qt3DRender.QGeometry.setBoundingVolumePositionAttribute(boundingVolumePositionAttribute)
Parameters

boundingVolumePositionAttributePySide2.Qt3DRender.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