Mesh QML Type

自定义网格加载器更多

Import Statement: import Qt3D.Render 2.9
In C++: QMesh
Status: Deprecated

属性

详细说明

从各种格式的外部文件加载网格数据。

在 Qt3D 5.9 中,Mesh 支持以下格式:

  • 波阵面 OBJ
  • 斯坦福三角格式 PLY
  • STL (STereoLithography)

如果安装了 SDK 并内置并找到了 fbx 几何体加载器插件,QMesh 还将支持以下格式。

  • Autodesk FBX

属性文档

meshName : string

表示应加载网格哪一部分的过滤器。

如果 meshName 为空(默认值),则加载整个网格。

如果 meshName 是纯字符串,则只加载与该名称匹配的子网格(如果存在)。

如果 meshName 是正则表达式,则会加载与表达式匹配的所有子网格。

注意: 只有 Wavefront OBJ 文件支持子网格。

另请参阅 QRegularExpression


source : url

保存包含自定义网格的文件的源 URL。


status : enumeration [read-only]

网格加载状态。

另请参阅 Qt3DRender::QMesh::Status


© 2025 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.