cnr-isti-vclab / PyMeshLab

The open source mesh processing python library
GNU General Public License v3.0
775 stars 62 forks source link

transfer_attributes_to_texture_per_vertex filter segmentation fault 11 when attributeenum=3 #300

Open Yzhbuaa opened 1 year ago

Yzhbuaa commented 1 year ago

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

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the VCLab team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the last release of PyMeshLab, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.