我写了一个小脚本,它的任务是加载网格(层),然后应用一些过滤器,最后将整个东西导出为层。
到现在为止还挺好。但是生成的 ply 文件无法读取。如果我尝试在 MeshLab 中打开它,它会显示:“面超过 3 个顶点”
这是涉及 pymeshlab 的代码部分(已清理):
import pymeshlab as ml
ms = ml.MeshSet()
ms.load_new_mesh(path + mesh_name)
ms.apply_filter('convert_pervertex_uv_into_perwedge_uv')
ms.apply_filter('transfer_color_texture_to_vertex')
ms.save_current_mesh(path + 'AutomatedGeneration3.ply')
我错过了什么?执行此脚本实际上没有错误消息。我还尝试为保存过滤器使用一些参数,但它没有改变任何东西。
我怎样才能正确?