Mesh QML Type
一个自定义网格加载器。更多...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QMesh |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
详细说明
从外部文件加载多种格式的网格数据。
在 Qt3D 5.9 中,Mesh 支持以下格式:
- Wavefront OBJ
- 斯坦福三角格式 PLY
- STL(立体光刻)
如果已安装 SDK,并且已构建并找到 fbx 几何体加载器插件,QMesh 还将支持以下格式:
- Autodesk FBX
属性文档
meshName : string
用于指定应加载网格中哪个部分的过滤器。
如果 meshName 为空(默认情况),则加载整个网格。
如果 meshName 是一个普通字符串,则仅加载与该名称匹配的子网格(如果存在)。
如果 meshName 是一个正则表达式,则将加载所有匹配该表达式的子网格。
注意:只有 Wavefront OBJ 文件支持子网格。
另请参阅 QRegularExpression 。
source : url
保存包含自定义网格的文件的源网址。
status : enumeration [read-only]
保存网格加载的状态。
另请参阅 Qt3DRender::QMesh::Status 。
© 2026 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.