QMesh露

A custom mesh loader. More鈥�

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QMesh

Synopsis露

Functions露

Slots露

Signals露

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 PySide2.Qt3DRender.Qt3DRender.QMesh([parent=None])露

Constructs a new QMesh with parent .

PySide2.Qt3DRender.Qt3DRender.QMesh.Status露

This enum identifies the status of shader used.

Constant

Description

Qt3DRender.QMesh.None

A source mesh hasn鈥檛 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

PySide2.Qt3DRender.Qt3DRender.QMesh.meshName()露
Return type:

str

Holds the name of the mesh.

PySide2.Qt3DRender.Qt3DRender.QMesh.meshNameChanged(meshName)露
Parameters:

meshName 鈥� str

PySide2.Qt3DRender.Qt3DRender.QMesh.setMeshName(meshName)露
Parameters:

meshName 鈥� str

Holds the name of the mesh.

PySide2.Qt3DRender.Qt3DRender.QMesh.setSource(source)露
Parameters:

source 鈥� PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.Qt3DRender.QMesh.source()露
Return type:

PySide2.QtCore.QUrl

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

PySide2.Qt3DRender.Qt3DRender.QMesh.sourceChanged(source)露
Parameters:

source 鈥� PySide2.QtCore.QUrl

PySide2.Qt3DRender.Qt3DRender.QMesh.status()露
Return type:

Status

Holds the status of the mesh loading.

See also

Status

PySide2.Qt3DRender.Qt3DRender.QMesh.statusChanged(status)露
Parameters:

status 鈥� Status