QPlaneGeometry

The QPlaneGeometry class allows creation of a plane in 3D space. * * * * The QPlaneGeometry class is most commonly used internally by the QPlaneMesh * but can also be used in custom QGeometryRenderer subclasses. More

Synopsis

Functions

Slots

Signals

Detailed Description

* * * *

class PySide2.Qt3DExtras.QPlaneGeometry([parent=None])
param parent

PySide2.Qt3DCore.QNode

Constructs a new QPlaneGeometry with parent .

PySide2.Qt3DExtras.QPlaneGeometry.height()
Return type

float

Holds the plane height.

PySide2.Qt3DExtras.QPlaneGeometry.heightChanged(height)
Parameters

height – float

PySide2.Qt3DExtras.QPlaneGeometry.indexAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry index attribute.

PySide2.Qt3DExtras.QPlaneGeometry.mirrored()
Return type

bool

Controls if the UV coordinates of the plane should be flipped vertically.

PySide2.Qt3DExtras.QPlaneGeometry.mirroredChanged(mirrored)
Parameters

mirrored – bool

PySide2.Qt3DExtras.QPlaneGeometry.normalAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry normal attribute.

PySide2.Qt3DExtras.QPlaneGeometry.positionAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry position attribute.

PySide2.Qt3DExtras.QPlaneGeometry.resolution()
Return type

PySide2.QtCore.QSize

Holds the plane resolution.

PySide2.Qt3DExtras.QPlaneGeometry.resolutionChanged(resolution)
Parameters

resolutionPySide2.QtCore.QSize

PySide2.Qt3DExtras.QPlaneGeometry.setHeight(height)
Parameters

height – float

Holds the plane height.

PySide2.Qt3DExtras.QPlaneGeometry.setMirrored(mirrored)
Parameters

mirrored – bool

Controls if the UV coordinates of the plane should be flipped vertically.

PySide2.Qt3DExtras.QPlaneGeometry.setResolution(resolution)
Parameters

resolutionPySide2.QtCore.QSize

Holds the plane resolution.

PySide2.Qt3DExtras.QPlaneGeometry.setWidth(width)
Parameters

width – float

Holds the plane width.

PySide2.Qt3DExtras.QPlaneGeometry.tangentAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry tangent attribute.

PySide2.Qt3DExtras.QPlaneGeometry.texCoordAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry texture coordinate attribute.

PySide2.Qt3DExtras.QPlaneGeometry.updateIndices()

Updates indices based on mesh resolution.

PySide2.Qt3DExtras.QPlaneGeometry.updateVertices()

Updates vertices based on mesh resolution, width, and height properties.

PySide2.Qt3DExtras.QPlaneGeometry.width()
Return type

float

Holds the plane width.

PySide2.Qt3DExtras.QPlaneGeometry.widthChanged(width)
Parameters

width – float