cnr-isti-vclab / PyMeshLab

The open source mesh processing python library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index error when using "save_current_mesh" function

ylimerm3 opened this issue · comments

hi, i have encountered an error when using the save_current_mesh function on a specific mesh layer, but exporting other layers work just fine. i suspect this may be an issue with the function generate_polyline_from_planar_section with splitsurfacewithsection=True because the layers that are created by splitting sections are the ones that result in this error when saving.
I checked to make sure the layers have vertices and faces, I've tried saving as other formats, and I've changed the arguments in the saving function, but everything still results in this error. Can anyone please help?

For context, I am attempting to crop a full body model and include the head only (using .obj preferably but other formats are fine too). Here is a zip folder with my code and the original model for replication purposes.

pymeshlab-error.zip
image

I appreciate any guidance! thank you
-Emily

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.

figured out the issue! the argument "save_textures" must be specified to save the mesh. previously, I did not need to add this argument to save the mesh, but after using the generate_polyline_from_planar_section function, this argument is required.