QMesh¶
A custom mesh loader. More…
Synopsis¶
Functions¶
Slots¶
def
setMeshName
(meshName)def
setSource
(source)
Signals¶
def
meshNameChanged
(meshName)def
sourceChanged
(source)def
statusChanged
(status)
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])¶
- param parent:
Constructs a new
QMesh
withparent
.
- PySide2.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
- 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:
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:
Holds the status of the mesh loading.
See also
Status
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.