我也收到此警告。尽管如此,它似乎仍然有效,除了像“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)