class QPlaneGeometry#

The QPlaneGeometry class allows creation of a plane in 3D space. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry

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#

The QPlaneGeometry class is most commonly used internally by the QPlaneMesh but can also be used in custom QGeometryRenderer subclasses.

Note

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

property heightᅟ: float#

Holds the plane height.

Access functions:
property indexAttributeᅟ: QAttribute#

Holds the geometry index attribute.

Access functions:
property mirroredᅟ: bool#

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

Access functions:
property normalAttributeᅟ: QAttribute#

Holds the geometry normal attribute.

Access functions:
property positionAttributeᅟ: QAttribute#

Holds the geometry position attribute.

Access functions:
property resolutionᅟ: QSize#

Holds the plane resolution.

Access functions:
property tangentAttributeᅟ: QAttribute#

Holds the geometry tangent attribute.

Access functions:
property texCoordAttributeᅟ: QAttribute#

Holds the geometry texture coordinate attribute.

Access functions:
property widthᅟ: float#

Holds the plane width.

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

parentQNode

Constructs a new QPlaneGeometry with parent.

height()#
Return type:

float

See also

setHeight()

Getter of property heightᅟ .

heightChanged(height)#
Parameters:

height – float

Notification signal of property heightᅟ .

indexAttribute()#
Return type:

QAttribute

Getter of property indexAttributeᅟ .

mirrored()#
Return type:

bool

See also

setMirrored()

Getter of property mirroredᅟ .

mirroredChanged(mirrored)#
Parameters:

mirrored – bool

Notification signal of property mirroredᅟ .

normalAttribute()#
Return type:

QAttribute

Getter of property normalAttributeᅟ .

positionAttribute()#
Return type:

QAttribute

Getter of property positionAttributeᅟ .

resolution()#
Return type:

QSize

See also

setResolution()

Getter of property resolutionᅟ .

resolutionChanged(resolution)#
Parameters:

resolutionQSize

Notification signal of property resolutionᅟ .

setHeight(height)#
Parameters:

height – float

See also

height()

Setter of property heightᅟ .

setMirrored(mirrored)#
Parameters:

mirrored – bool

See also

mirrored()

Setter of property mirroredᅟ .

setResolution(resolution)#
Parameters:

resolutionQSize

See also

resolution()

Setter of property resolutionᅟ .

setWidth(width)#
Parameters:

width – float

See also

width()

Setter of property widthᅟ .

tangentAttribute()#
Return type:

QAttribute

Getter of property tangentAttributeᅟ .

texCoordAttribute()#
Return type:

QAttribute

Getter of property texCoordAttributeᅟ .

updateIndices()#

Updates indices based on mesh resolution.

updateVertices()#

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

width()#
Return type:

float

See also

setWidth()

Getter of property widthᅟ .

widthChanged(width)#
Parameters:

width – float

Notification signal of property widthᅟ .