PyMeshLab
PyMeshLab copied to clipboard
transfer_attributes_to_texture_per_vertex filter segmentation fault 11 when attributeenum=3
Here is the code and log printed:
import pymeshlab as ml
ms = ml.MeshSet()
print('Loading source mesh')
ms.load_new_mesh('sub.obj') # load source mesh
print('Loading target mesh')
ms.load_new_mesh('sub.ply') # load target mesh
print('Performing texture transfer')
ms.apply_filter('transfer_attributes_to_texture_per_vertex', sourcemesh=0, targetmesh=1, attributeenum=3,
upperbound=ml.Percentage(2.0), textname='texture.png', textw=1024,
texth=1787, overwrite=True, pullpush=True)
ms.save_current_mesh('sub_reprojected.ply')
Loading source mesh
Loading target mesh
Performing texture transfer
Similar Triangles face sampling
Segmentation fault: 11
This issue is possibly related with https://github.com/cnr-isti-vclab/meshlab/issues/1327#issue-1455734396