1

我对此完全陌生,并且努力学习 PyMeshLab 的教程(https://pymeshlab.readthedocs.io/en/latest/about.html)。

我想做的事:

  • 通过 PyMeshLab 打开一个文件(例如 xyz.ply - 点云)
  • 一些过滤动作
  • 保存过滤后的文件(例如 xyz.obj)

我的“代码”是从教程“加载网格”、“应用过滤器”和“保存网格”拼接在一起的。

导入库时已经提示警告

导入 pymeshlab ..

->

警告:无法加载以下插件:

filter_sketchfab.dll: filter_sketchfab.dll does not seem to be a Qt Plugin.

无法加载库 C:\Users\bvis\AppData\Local\Programs\Python\Python39\lib\site-packages\pymeshlab\lib\plugins\filter_sketchfab.dll:Das angegebene Modul wurde nicht gefunden。

有任何想法吗?

谢谢

4

1 回答 1

2

我也收到此警告。尽管如此,它似乎仍然有效,除了像“MeshSet.print_filter_list()”这样的打印函数,您可能已经从示例代码中复制了这些函数。您可以轻松地将打印功能替换为模块级别的功能:

import pymeshlab
pymeshlab.print_pymeshlab_version()
filters = pymeshlab.filter_list()
print(filters)
pymeshlab.print_filter_parameter_list('discrete_curvatures')

结果:

PyMeshLab 0.2 based on MeshLab 2020.12d
['alpha_complex_shape', 'ambient_occlusion', 'annulus', 'box_cube', ... 'voronoi_sampling', 'voronoi_scaffolding', 'voronoi_vertex_coloring']
Please note: some parameters depend on the mesh(es) used as input of the 
filter. Default values listed here are computed on a 1x1x1 cube 
(pymeshlab/tests/sample/cube.obj), and they will be computed on the input mesh
if they are left as default.
surface_reconstruction_screened_poisson filter - list of parameter names:
    visiblelayer : bool = False
    depth : int = 8
    fulldepth : int = 5
    cgdepth : int = 0
    scale : float = 1.1
    samplespernode : float = 1.5
    pointweight : float = 4
    iters : int = 8
    confidence : bool = False
    preclean : bool = False

其他 MeshSet 函数对我有用,没有问题,例如:

ms = pymeshlab.MeshSet()
ms.load_new_mesh('test.ply')
ms.apply_filter('discrete_curvatures')
ms.save_current_mesh(output_vis)
于 2021-03-01T15:11:31.117 回答