QMesh#

A custom mesh loader. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QMesh

Synopsis#

Properties#

Functions#

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#

Loads mesh data from external files in a variety of formats. QMesh loads data into a single mesh.

In Qt3D 5.9, QMesh supports the following formats:

  • Wavefront OBJ

  • Stanford Triangle Format PLY

  • STL (STereoLithography)

QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found:

  • Autodesk FBX

If you wish to load an entire scene made of several objects, you should rather use the QSceneLoader instead.

See also

QSceneLoader

class PySide6.Qt3DRender.Qt3DRender.QMesh([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QMesh with parent.

Note

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

property PᅟySide6.Qt3DRender.Qt3DRender.QMesh.meshName: str#

Holds the name of the mesh.

Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QMesh.source: PySide6.QtCore.QUrl#

Holds the source url to the file containing the custom mesh.

Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QMesh.status: Status#

Holds the status of the mesh loading.

See also

Status

Access functions:
PySide6.Qt3DRender.Qt3DRender.QMesh.Status#

This enum identifies the status of shader used.

Constant

Description

Qt3DRender.QMesh.None

A source mesh hasn’t been assigned a source yet

Qt3DRender.QMesh.Loading

The mesh geometry is loading

Qt3DRender.QMesh.Ready

The mesh geometry was successfully loaded

Qt3DRender.QMesh.Error

An error occurred while loading the mesh

PySide6.Qt3DRender.Qt3DRender.QMesh.meshName()#
Return type:

str

See also

setMeshName()

Getter of property meshName .

PySide6.Qt3DRender.Qt3DRender.QMesh.meshNameChanged(meshName)#
Parameters:

meshName – str

Notification signal of property meshName .

PySide6.Qt3DRender.Qt3DRender.QMesh.setMeshName(meshName)#
Parameters:

meshName – str

See also

meshName()

Setter of property meshName .

PySide6.Qt3DRender.Qt3DRender.QMesh.setSource(source)#
Parameters:

sourcePySide6.QtCore.QUrl

See also

source()

Setter of property source .

PySide6.Qt3DRender.Qt3DRender.QMesh.source()#
Return type:

PySide6.QtCore.QUrl

See also

setSource()

Getter of property source .

PySide6.Qt3DRender.Qt3DRender.QMesh.sourceChanged(source)#
Parameters:

sourcePySide6.QtCore.QUrl

Notification signal of property source .

PySide6.Qt3DRender.Qt3DRender.QMesh.status()#
Return type:

Status

Getter of property status .

PySide6.Qt3DRender.Qt3DRender.QMesh.statusChanged(status)#
Parameters:

statusStatus

Notification signal of property status .